Skip to content

Immutable.js Support

Will Hawker edited this page Aug 6, 2017 · 3 revisions

React JSX Highcharts and Highstock support using Immutable.js data structures as series data. N.B. Reasons to use Immutable structures

There is no extra configuration required, simply pass the Immutable structure via the data prop as you would normally.

const lostNumbers = Immutable.List([4, 8, 15, 16, 23, 42]);

return (
  <HighchartsChart>
    // omitted

    <YAxis id="my-axis">
      <SplineSeries id="immutable-example" data={lostNumbers} />
    </YAxis>
  </HighchartsChart>
);
Clone this wiki locally