Skip to content
pubscout

chart_engine

3.0.2, released 2 weeks ago by an unverified publisher

Chart generator with interchangeable chart engines like ChartJS and ApexCharts.

WASM-ready
$ flutter pub add chart_engine
Source repository

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.

Works with

Packages commonly used together with chart_engine: ones it builds on, ones built on it, and its own family.