-
Notifications
You must be signed in to change notification settings - Fork 90
Higher Order Components provideAxis (v2 and below)
Will Hawker edited this page May 30, 2018
·
1 revision
Note A component wrapped with this HOC must be rendered with an axisId
prop - referring to the id
of the axis you wish to interact with.
This HOC injects the following props:
-
getAxis
- Returns the Highcharts axis instance -
getChart
- Returns the Highcharts chart instance -
get
- TheChart.get
method, properly scoped to the chart instance
It also exposes Highcharts Axis methods directly properly scoped to the axis instance
-
update
- TheAxis.update
method -
remove
- TheAxis.remove
method -
getExtremes
- TheAxis.getExtremes
method -
setExtremes
- TheAxis.setExtremes
method -
addPlotBand
- TheAxis.addPlotBand
method -
addPlotLine
- TheAxis.addPlotLine
method -
removePlotBand
- TheAxis.removePlotBand
method -
removePlotLine
- TheAxis.removePlotLine
method
Examples - NPM links: react-jsx-highcharts
| react-jsx-highstock
| react-jsx-highmaps