-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Chart.Controller deprecation #3839
Conversation
c77fd37
to
6ac420c
Compare
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
@@ -30,12 +30,12 @@ | |||
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 😄
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 nestedchart
property) by gatheringchart
andchart.chart
properties at the same level (chart.chart
now being an alias tochart
).chartInstance
variables have been renamed tochart
since there is no more distinction. A new test file has been added to keep track of deprecations (test/global.deprecations.tests.js
).Fixes #2481