reactjs / react-chartjs

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

(feat) Chart.js 2.0-dev compatibility #91

Closed danmolitor closed 8 years ago

danmolitor commented 8 years ago

After reading about Chart.js 2.0's performance upgrades, I've updated react-chartjs to be compatible with the Chart.js most up to date 2.0-dev branch, including the new bubble and scatter charts. By moving from 1.0.2 to 2.0, the time it takes a simple line-chart to render has dropped significantly.

Since people may still want to use Chart.js v1.0.2., if you don't want to merge yet people can still use this version by updating their dependencies in their project's package.json to:

"chart.js": "git://github.com/danmolitor/Chart.js.git#v2.0-dev", "react-chartjs": "git+https://github.com/jhudson8/react-chartjs#chartjs-v2"

I've attached a image showing the original charts using Chart.js v2.0-dev.

react-chartjs2

austinpray commented 8 years ago

I edited your PR comment slightly to reflect "jhudson8/react-chartjs#chartjs-v2"

danmolitor commented 8 years ago

Okay, great! Let me know if there's anything else I can do.

austinpray commented 8 years ago

Thank you! Upward and onward!