chart_engine
3.0.2, released 2 weeks ago by an unverified publisher
Chart generator with interchangeable chart engines like ChartJS and ApexCharts.
What it does
Generates charts using interchangeable underlying chart engines like ChartJS and ApexCharts. Automatically bundles and loads the required JavaScript libraries. Handles chart configuration generation without needing explicit engine documentation.
AI-written summary of version 3.0.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to generate charts on the web using ChartJS or ApexCharts from Dart.
- You want to be able to switch between different chart engines without rewriting chart data setup.
Skip it when
- You are building a non-web Flutter app, as this package targets web / dart platforms.
- You prefer a native Flutter widget chart implementation rather than JS-interop wrapper engines.
Strengths
- Supports interchangeable chart engines (ApexCharts and ChartJS).
- Bundles required JavaScript libraries out of the box.
- Fallback Date adapter for ChartJS time series without needing Moment.js.
Weaknesses
- Limited to web platform usage.
- Relies on external JS charting libraries via interop.
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 6
JavaScript libraries are bundled automatically by the package.
import 'package:chart_engine/chart_engine_apexcharts.dart';
void main() async {
var series = ChartSeries(
['Jan','Feb','Mar'],
{
'A': [10,20,5],
'B': [15,25,55],
'C': [100,130,140]
}
);
var charEngine = ChartEngineApexCharts();
await charEngine.load();
charEngine.renderLineChart(querySelector('#output'), series);
}Alternatives
Packages that do the same job and could replace chart_engine.
- fl_chart
Pure Flutter implementation for charts rather than relying on JS interop.
94Compare - syncfusion_flutter_charts
Comprehensive native chart library across platforms.
91Compare
Works with
Packages commonly used together with chart_engine: ones it builds on, ones built on it, and its own family.
- intlchart_engine depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.
- swiss_knifechart_engine depends on itCollection of Dart utility tools for collections, math, date, URI, JSON, events, and resources.
- dom_toolschart_engine depends on itDOM rich elements and tools for CSS, JavaScript, Element Tracking, DOM Manipulation, and Storage.
- web_utilschart_engine depends on itDart extensions for web development, improving JavaScript interop and the web package.
- amdjschart_engine depends on itDart package to load JavaScript libraries that use AMD (RequireJS) in web apps.
- color_palette_generatorchart_engine depends on itGenerate N colors using a set of basic colors, supporting HEX and RGBA.