/react-highcharts

react-highcharts

Primary LanguageJavaScript

react-highcharts

Highcharts component for react.

Demo

You can find the full code for the examples here

Installation

npm install react-highcharts --save

Usage

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

Using highcharts-more

Just require require('react-highcharts/more'); instead of react-highcharts