c3 0.2.0 copy "c3: ^0.2.0" to clipboard
c3: ^0.2.0 copied to clipboard

Platformweb

A starting point for Dart libraries or applications.

A generated Dart API for C3.js using pkg/js and dart_js_facade_gen.

Example #

import "dart:html";
import "package:c3/c3.dart" as c3;

main() async {
  await c3.load();

  final container = document.querySelector("#chart");

  final data = new c3.Data()
    ..columns = [
      ['data1', 30, 200, 100, 400, 150, 250],
      ['data2', 50, 20, 10, 40, 15, 25]
    ];

  final configuration = new c3.ChartConfiguration()
    ..bindto = container
    ..data = data;

  final chart = c3.generate(configuration);
}
1
likes
125
points
49
downloads

Publisher

verified publisherhadrienlejard.io

Weekly Downloads

A starting point for Dart libraries or applications.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

dart_browser_loader, js

More

Packages that depend on c3