"Accessing Highcharts API after render"
samklonaris opened this issue · comments
Samantha Klonaris commented
In the readme it says you can access the highcharts api after render? Can I not access it before render?
I'm trying to override Highcharts.Navigator.prototype.drawHandle
but Highcharts
is undefined everywhere (in my constructor and in render).
I am importing ReactHighstock like:
import ReactHighstock from 'react-highcharts/ReactHighstock';
Even ReactHighstock
is undefined unless I am drawing the component.
Kirill Cherkashin commented
For access to methods & properties from the Highcharts library you can use ReactHighcharts.Highcharts. For example, the Highcharts options are available via ReactHighcharts.Highcharts.getOptions().