reactjs / react-chartjs

common react charting components using chart.js
MIT License
2.93k stars 301 forks source link

This project is not working with latest chart.js code (API change) #172

Closed a-r-d closed 6 years ago

a-r-d commented 7 years ago

Apparently the latest chart.js has changed their initialization API so that when this line in core is called, initialization fails:

var chart = new Chart(ctx)[chartType](nextProps.data, nextProps.options || {});

It seems that version 1.1.1 of chart.js is working fine, not sure when the breaking change went in. The latest version of chart.js is 2.4.0, and it does not work with this project anymore.

Jareechang commented 7 years ago

this library is based on specific version of chart.js (1.1.1) and certainly when upgrading to a major version, there will be plenty of deprecations.

davidmason commented 7 years ago

@a-r-d the master version is only expected to work with 1.x versions of chartjs. There is a branch for chartjs-v2 but no releases from that branch yet.

We will be working on roadmaps soon, so I think we will look at what is needed to get the v2 branch ready for release.

benmccann commented 6 years ago

Please see https://github.com/reactjs/react-chartjs/issues/154. Closing this issue as a duplicate