Chart Engine は、ChartJS や ApexCharts などの交換可能なバックエンドエンジンを使用してチャートを生成するための統一インターフェースを提供する Flutter/Dart パッケージです。主に Web アプリケーション向けに設計されており、チャート構成コードを変更せずにレンダリングエンジンをシームレスに切り替えることができます。この抽象化により、異なる可視化ライブラリとの統合が簡単になり、プラットフォーム間で一貫した API の使い方が維持されます。パッケージは動的なチャート更新と応答性のあるデザインをサポートしており、データが多く含まれる Web ダッシュボードに最適です。
NOTE: You don't need to read any specific documentation of any engine to use chart_engine,
since any Chart configuration needed to generate your Chart will be
automatically handled by this package (see the example).
Usage
A simple example using ApexCharts (ChartsJS is commented):
...and see the Web Example (just follow the README file for instructions).
Loading Engines JavaScript Libraries
This Dart package already bundles the JavaScript libraries of each supported engine.
When an implementation of ChartEngine is instantiated, the corresponding JavaScript library is automatically loaded
and no extra code is needed in your Dart files or HTML files.
The loading processes is made by the package amdjs.dart. It loads
the JavaScript libraries using AMD framework when an AMD implementation is present and detected,
or injecting a tag <script src='lib-x.js'></script> as fallback.
ChartJS and Moment
You don't need to load Moment JS library to use Time Series Charts when using ChartJS engine.
We implement a fallback Date adapter, using Dart code interoperability,
based in Dart DateTime and DateFormat implementations. ;-P
Features and bugs
Please file feature requests and bugs at the issue tracker.
Colossus.Services
This is an open-source project from Colossus.Services:
the gateway for smooth solutions.