-
Notifications
You must be signed in to change notification settings - Fork 90
Higher Order Components provideChart (v2 and below)
Will Hawker edited this page May 30, 2018
·
2 revisions
This HOC injects the following props:
-
getChart
- Returns the Highcharts chart instance -
getChartType
- Returnschart
orstockChart
depending on the whether the chart is a Highcharts chart, or Highstock chart
It also exposes Highcharts Chart methods directly properly scoped to the chart instance
-
get
- TheChart.get
method -
update
- TheChart.update
method -
addAxis
- TheChart.addAxis
method -
addSeries
- TheChart.addSeries
method -
setTitle
- TheChart.setTitle
method
Examples - NPM links: react-jsx-highcharts
| react-jsx-highstock
| react-jsx-highmaps