Skip to content

Higher Order Components provideAxis (v2 and below)

Will Hawker edited this page May 30, 2018 · 1 revision

provideAxis (v2 and below)

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 - The Chart.get method, properly scoped to the chart instance

It also exposes Highcharts Axis methods directly properly scoped to the axis instance