-
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
Make the main controller importable #5969
Make the main controller importable #5969
Conversation
f86a114
to
6244a61
Compare
Merge `core/core.js` in `core/core.controller.js`, split defaults options next to their associated code and deprecate `Chart.type` (not sure what it was for).
6244a61
to
953000a
Compare
* for backward compatibility. Though, it can still be useful for plugins that | ||
* would need to work on multiple charts?! | ||
*/ | ||
Chart.instances = {}; |
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.
Yeah, this is helpful for iterating all charts on a page. It has been recommended in some cases
Is there a alternative way to enumerate all registered chart types? |
40f371f
@kurkle I removed the unused local |
Merge `core/core.js` in `core/core.controller.js`, split default options next to their associated code and deprecate `Chart.types` (not sure what it was for).
Merge
core/core.js
incore/core.controller.js
, split defaults options next to their associated code and deprecateChart.types
(not sure what it was for).This is part of #4478, will work on helpers next.