kirjs / react-highcharts

React wrapper for Highcharts library

Home Page:http://kirjs.github.io/react-highcharts/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Accessing Highcharts API after render"

samklonaris opened this issue · comments

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.

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().