Closed sylg closed 9 years ago
Looks like you didn't follow the install instructions (see README.md). You must do this once before you use the charts.
// initialize ReactChartjs
require('react-chartjs/vars').React = React;
FYI, the next release won't require this
this change has been made in v0.2.0
Thanks for the quick reply. Awesome :+1:
I'm getting this error in the browser:
Uncaught Error: The charts were not initialized with the React instance
with this sample test:
React (via Browserify) work fine alone if remove everything related to react-chartjs...
If I fall back to just using script tags to load chart.js and react-chartjs, everything works fine.