パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v3.0.2

chart_engine

チャートエンジン(ChartJS や ApexCharts など)を交換可能なチャートジェネレーター。

Web
30日間ダウンロード
2320
いいね数
50
Pub ポイント
160

パッケージをインストール

flutter pub add chart_engine

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Chart Engine は、ChartJS や ApexCharts などの交換可能なバックエンドエンジンを使用してチャートを生成するための統一インターフェースを提供する Flutter/Dart パッケージです。主に Web アプリケーション向けに設計されており、チャート構成コードを変更せずにレンダリングエンジンをシームレスに切り替えることができます。この抽象化により、異なる可視化ライブラリとの統合が簡単になり、プラットフォーム間で一貫した API の使い方が維持されます。パッケージは動的なチャート更新と応答性のあるデザインをサポートしており、データが多く含まれる Web ダッシュボードに最適です。

用途

  • Webベースのデータダッシュボード
  • インタラクティブなチャート表示
  • 動的データの可視化
  • クロスエンジンチャート互換性
  • リアルタイム分析インターフェース

主な機能

  • プラグアンドプレイチャートエンジン
  • ChartJS および ApexCharts のサポート
  • 応答性のあるチャートレンダリング
  • エンジン間での一貫した API
  • ウェブアプリとの簡単な統合

適している対象

  • Flutter Web開発者
  • データ可視化プロジェクト
  • 複数のチャートタイプを必要とするダッシュボード
  • チャートライブラリ間を切り替えるチーム
  • 柔軟なチャートバックエンドを必要とするアプリケーション

注意事項

  • 主にウェブ向けに最適化されています
  • 限定的なネイティブモバイルサポート
  • エンジン固有の機能が完全に公開されていない可能性があります
  • 下位のチャートライブラリの理解が必要です
  • Webコンテキストに読み込まれた外部エンジンスクリプトに依存しています

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

chart_engine

pub package Null Safety Dart CI GitHub Tag New Commits Last Commits Pull Requests Code size License Live Example

Chart generator with interchangeable chart engines, like ChartJS and ApexCharts.

Engines

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):

import 'dart:html';

//import 'package:chart_engine/chart_engine_chartjs.dart';
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]
      }
  ) ;

  series.title = 'Chart Example' ;
  series.xTitle = 'Months' ;
  series.yTitle = 'Count' ;
  series.options.fillLines = true ;
  series.options.straightLines = true ;

  //var charEngine = ChartEngineChartJS() ;
  var charEngine = ChartEngineApexCharts() ;
  await charEngine.load() ;
  charEngine.renderLineChart( querySelector('#output') , series ) ;


}

Live Example

You can see here a live example

If your prefer you can experiment with the example from the source code.

Example from Sources

Get the source

  $> git clone https://github.com/Colossus-Services/chart_engine.git

...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.

Author

Graciliano M. Passos: gmpassos@GitHub.

License

Apache License - Version 2.0

カテゴリー

依存関係

依存関係一覧 6 件

  • amdjs^3.0.0
  • color_palette_generator^2.0.1
  • dom_tools^3.1.1
  • intl^0.20.3
  • swiss_knife^3.4.2
  • web_utils^1.1.0

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。