chartjs/chartjs-plugin-deferred

Error with global options

Closed this issue · 3 comments

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)

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.

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