-
Notifications
You must be signed in to change notification settings - Fork 90
Higher Order Components provideChart
Will Hawker edited this page Jun 12, 2019
·
3 revisions
This HOC injects a single prop
getChart
This is a function, that returns an object
this.props.getChart();
// Which returns an object with props
Object Property | Description |
---|---|
object |
The Highcharts chart instance |
type |
The type of chart, either 'chart' or 'stockChart' |
get |
The get function |
addAxis |
The addAxis function |
addSeries |
The addSeries function |
setTitle |
The setTitle function |
showLoading |
The showLoading function |
hideLoading |
The hideLoading function |
setSize |
(Added 3.6.0) The setSize function |
The functions are bound to the chart instance, to maintain default Highcharts behaviour
Examples - NPM links: react-jsx-highcharts
| react-jsx-highstock
| react-jsx-highmaps