-
Notifications
You must be signed in to change notification settings - Fork 90
Immutable.js Support
Will Hawker edited this page Apr 15, 2020
·
3 revisions
React JSX Highcharts and Highstock (prior to version 4) 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>
);
Examples - NPM links: react-jsx-highcharts
| react-jsx-highstock
| react-jsx-highmaps