-
Notifications
You must be signed in to change notification settings - Fork 90
id props (important!)
Will Hawker edited this page May 30, 2018
·
3 revisions
Version 3 adds IDs for you automatically, using a UUID.
React JSX Highcharts requires the id
prop, for every Axis, Series or PlotLine/PlotBand you create. This is to ensure that we interact with the correct Highcharts configuration options behind the scenes.
Every ID must be unique, across the entire chart (i.e. a series cannot have the same ID as an axis)
If you omit the id
prop from any of the above, your component will not be rendered
The <XAxis />
component has a default ID of xAxis
as it has been assumed for the vast majority of use cases, there will be only one X Axis.
Examples - NPM links: react-jsx-highcharts
| react-jsx-highstock
| react-jsx-highmaps