Error: Config must be specified for the HighchartsChart component
vkgpt11 opened this issue · comments
Vikas Kumar Gupta commented
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?
Kirill Cherkashin commented
Closing and there has been no activity in this issue for a while.
if this is still relevant, please feel free to reopen