Skip to content
This repository was archived by the owner on Jul 19, 2019. It is now read-only.

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

Merged
merged 1 commit into from
Apr 6, 2016

Conversation

danmolitor
Copy link

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
Copy link
Member

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

@danmolitor
Copy link
Author

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

@austinpray austinpray added this to the 2.0.0 milestone Mar 30, 2016
@@ -110,8 +119,10 @@ return /******/ (function(modules) { // webpackBootstrap

classData.componentDidMount = function() {
this.initializeChart(this.props);
console.log(this.props);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should probably get rid of this console.log()

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😎

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, forgot about that one! Gone now.

@austinpray austinpray merged commit 16b1022 into reactjs:chartjs-v2 Apr 6, 2016
@austinpray
Copy link
Member

Thank you! Upward and onward!

@danmolitor danmolitor deleted the chartjs2dev branch April 6, 2016 19:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants