Skip to content

Higher Order Components provideChart

Will Hawker edited this page Jun 12, 2019 · 3 revisions

provideChart

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