Skip to content

id props (important!)

Will Hawker edited this page May 30, 2018 · 3 revisions

IDs

Version 3 adds IDs for you automatically, using a UUID.


Important for v2 and v1 users!

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

Note:

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.