Library that allows to use Highstock chart library in Dart applications.
Include highstock.js in your project from package asset, CDN or as bower dependency.
Instantiate Highstock chart library with container to render chart into:
var chart = new HighstockChart(new StockChartOptions() ..chart = (new Chart() ..renderTo = querySelector('#payments_chart')));
You can add some data to chart before rendering:
var chart = new HighstockChart(new StockChartOptions() ..chart = (new Chart() ..renderTo = querySelector('#payments_chart')) ..series = [new LineSeries() ..name = 'Demo' ..type = 'line' ..data = [0, 2, 1]]);
... or after rendering:
var chart = new HighstockChart(new StockChartOptions() ..chart = (new Chart() ..renderTo = querySelector('#payments_chart')) ..series = [new LineSeries() ..name = 'Demo' ..type = 'line']); chart.series.setData([0, 2, 1], true, false, false);
Class hierarchy is the same as in highstock library.
Each option is mapped to the related class, so if you want to tune chart title, you should use Title class, for legend - Legend class etc.
Add this to your package's pubspec.yaml file:
dependencies: highstock_wrapper: "^0.1.5"
You can install packages from the command line:
$ pub get
Alternatively, your editor might support
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|0.1.5||Aug 12, 2016|
We analyzed this package, and provided a score, details, and suggestions below.
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Detected platforms: web
Strong-mode analysis of
lib/highstock_wrapper.dartfailed with the following error:
line: 22496 col: 3
Invalid override. The type of 'FlagsSeries.data=' ('(List<JsObject>) → void') isn't a subtype of 'Series.data=' ('(dynamic) → void').
Fix issues reported by
dartanalyzerreported 1 error(s) and 0 warning(s).
The description is too short.
Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.
Package is pre-v1 release.
While there is nothing inherently wrong with versions of
0.*.*, it usually means that the author is still experimenting with the general direction API.
Maintain an example.
Create a short demo in the
example/directory to show how to use this package. Common file name patterns include:
example.dartor you could also use