nagix / chartjs-plugin-colorschemes

Predefined color schemes for Chart.js
MIT License
271 stars 59 forks source link

Plugin doesn't work with Chart.js 3.x.x #25

Closed esttenorio closed 3 years ago

esttenorio commented 3 years ago

Please add support for Chartjs 3.x.x or at least mention it in the README since it only says "This plugin requires Chart.js 2.5.0 or later."

Chart.js changed from Chart.defaults.global to Chart.defaults in the new version.

image image

https://www.chartjs.org/docs/master/getting-started/v3-migration/#defaults

MartijnVerkleij commented 3 years ago

Hi there, I implemented some changes in #26 that may help you in the meantime.