@ahrefs/bs-highcharts

Bucklescript bindings for Highcharts


Keywords
react, reactjs, chart, bucklescript, highcharts, binding
License
MIT
Install
npm install @ahrefs/bs-highcharts@0.0.4

Documentation

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!