live_charts 0.0.2 live_charts: ^0.0.2 copied to clipboard
A library for creating live charts.
live_charts #
A library for creating live charts.
Usage #
A simple usage example:
import 'dart:math';
import 'dart:async';
import 'package:live_charts/live_charts.dart';
main() {
// create new options with the id of the parent element tag
var chartOptions = new LiveChartOptions("wrapper");
// create new chart
var chart = new LiveChart(chartOptions);
// start drawing the chart
chart.start();
// feed data to it
var rng = new Random();
new Timer.periodic(new Duration(milliseconds: 100), (_) {
chart.addValue(rng.nextInt(100));
});
}
Features and bugs #
Please file feature requests and bugs at the issue tracker.