kirjs / react-highcharts

React wrapper for Highcharts library
http://kirjs.github.io/react-highcharts/
MIT License
1.26k stars 233 forks source link

Error: Config must be specified for the HighchartsChart component #407

Closed vkgpt11 closed 5 years ago

vkgpt11 commented 6 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?

kirjs commented 5 years ago

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