-
Notifications
You must be signed in to change notification settings - Fork 91
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.getmethod, properly scoped to the chart instance
It also exposes Highcharts Axis methods directly properly scoped to the axis instance
-
update- TheAxis.updatemethod -
remove- TheAxis.removemethod -
getExtremes- TheAxis.getExtremesmethod -
setExtremes- TheAxis.setExtremesmethod -
addPlotBand- TheAxis.addPlotBandmethod -
addPlotLine- TheAxis.addPlotLinemethod -
removePlotBand- TheAxis.removePlotBandmethod -
removePlotLine- TheAxis.removePlotLinemethod
Examples - NPM links: react-jsx-highcharts | react-jsx-highstock | react-jsx-highmaps