@ahrefs/bs-highcharts

0.0.4 • Public • Published

bs-highcharts

These are Bucklescript bindings for highcharts. 🚧 They are not complete. Types can change in a backwards incompatible way between minor versions. 🚧

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!

Package Sidebar

Install

npm i @ahrefs/bs-highcharts

Weekly Downloads

3

Version

0.0.4

License

MIT

Unpacked Size

8.65 kB

Total Files

6

Last publish

Collaborators

  • feihong
  • jchavarri
  • zindel
  • denstr
  • bryanthomaschen
  • khady
  • rustykey
  • germes