bs-highcharts
These are Bucklescript bindings for highcharts.
Install
yarn add @ahrefs/bs-highcharts
Setup
Add bs-highcharts
to bs-dependencies
in your bsconfig.json
.
{
/* ... */
"bs-dependencies": [
"@ahrefs/bs-highcharts"
],
/* ... */
}
Usage Example
open Highcharts;
let options =
Options.(
make(
~title=Title.make(~text="My chart", ()),
~series=[|Series.line(~data=[|1, 2, 3|], ())|],
(),
)
);
Highcharts.chart("container", options);
Check Highcharts API documentation for available props in the original JavaScript library. Several options might not be available in these bindings, PRs welcome!