-
Notifications
You must be signed in to change notification settings - Fork 12k
Chart.Controller deprecation #3839
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
c77fd37 to
6ac420c
Compare
etimberg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These look good. Will sync them and test them out
| backgroundColor: color(window.chartColors.red).alpha(0.2).rgbString(), | ||
| borderColor: window.chartColors.red, | ||
| data: [ | ||
| randomScalingFactor(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are these just whitespace changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, my editor is configured to remove trailing whitespace, which is actually an ESLint rule, but examples are not part of the lint process.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, ok. makes sense :)
| }); | ||
| }); | ||
|
|
||
| describe('Version 2.1.5', function() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh awesome, I was going to suggest we add this. You're one step ahead of me 😄
etimberg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested these changes out. I tried the samples for all different chart types and did not notice anything. I also tested the zoom and annotation plugins using their sample files and they still worked.
Deprecates
Chart.Controller(and the nestedchartproperty) by gatheringchartandchart.chartproperties at the same level (chart.chartnow being an alias tochart).chartInstancevariables have been renamed tochartsince there is no more distinction. A new test file has been added to keep track of deprecations (test/global.deprecations.tests.js).Fixes #2481