chartjs / chartjs-plugin-deferred

Chart.js plugin to defer initial chart updates
https://chartjs-plugin-deferred.netlify.app/
MIT License
108 stars 21 forks source link

Error with global options #5

Closed FlyingLooper closed 6 years ago

FlyingLooper commented 6 years ago

I was hoping to set some global deferred options with Chart.defaults.global.plugins.deferred, but it seems to be undefined.

Chart.js (v2.7.0) chartjs-plugin-deferred (v0.3.0)

simonbrunel commented 6 years ago

That's because v0.3.0 used the old defaults: Chart.Deferred.defaults. This will be changed to Chart.defaults.global.plugins.deferred in v1.0.0.

FlyingLooper commented 6 years ago

I didn't even think to check Chart.Deferred.defaults. That works perfectly. Great plugin for a great library. Thanks!

simonbrunel commented 6 years ago

Version 1.0.0 released!

https://chartjs-plugin-deferred.netlify.com/installation