Open reggie3 opened 8 years ago
This is working fine for me.
Are you sure you are requiring the lib correctly ?
something like this:
var ReactChart = require('react-chartjs');
var BarChart = ReactChart.Bar;
Also, it looks like you are using this.state.data
, please check if that is defined as well.
Using the following dataset to create a grouped bar chart results in a "Cannot read property 'bars' of undefined" error in core.js line 132.
I use the following code in the render function:
The dataset was obtained from a StackOverflow question ([http://stackoverflow.com/questions/28180871/grouped-bar-charts-in-chart-js]) and results in the grouped bar chart seen in the jsfiddle here: http://jsfiddle.net/11of5ysf/