Closed vkgpt11 closed 5 years ago
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
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?