0.0.4 ā€¢ Published 5 years ago

@ahrefs/bs-highcharts v0.0.4

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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!