Highcharts component for react.
You can find the full code for the examples here
npm install react-highcharts --save
var React = require('react');
var Highcharts = require('react-highcharts');
var config = {
/* HighchartsConfig */
};
React.render(<Highcharts config = {config}></Highcharts>, document.body);
For access to methods & properties from the Highcharts library you can use Highcharts.Highcharts
. For example, the Highcharts options are available via Highcharts.Highcharts.getOptions()
.
Just require require('react-highcharts/more');
instead of react-highcharts