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

Error: Config must be specified for the HighchartsChart component

vkgpt11 opened this issue · comments

import React from 'react';
import highcharts from 'highcharts';

const ReactHighcharts = require('react-highcharts'); // Expects that Highcharts was loaded in the code.

class Chart1 extends React.Component {
componentDidMount() {
let chart = this.refs.chart.getChart();
chart.series[0].addPoint({x: 10, y: 12});
}

render() {
const config = {
/* HighchartsConfig */
};
return ;
}
}

I am getting "Config must be specified for the HighchartsChart" error? Can you please help me out?

Closing and there has been no activity in this issue for a while.
if this is still relevant, please feel free to reopen