-
Notifications
You must be signed in to change notification settings - Fork 90
Higher Order Components provideSeries (v2 and below)
Will Hawker edited this page May 30, 2018
·
1 revision
Note A component wrapped with this HOC must be rendered with a seriesId
prop - referring to the id
of the series you wish to interact with.
This HOC injects the following props:
-
getSeries
- Returns the Highcharts series instance -
getChart
- Returns the Highcharts chart instance -
get
- TheChart.get
method, properly scoped to the chart instance
It also exposes Highcharts Series methods directly properly scoped to the series instance
-
update
- TheSeries.update
method -
remove
- TheSeries.remove
method -
setData
- TheSeries.setData
method -
setVisible
- TheSeries.setVisible
method
Examples - NPM links: react-jsx-highcharts
| react-jsx-highstock
| react-jsx-highmaps