chartjs-plugin-colorschemes
chartjs-plugin-colorschemes copied to clipboard
ChartJS Version 3: This NPM Package Appears to Work
I, like many others here, ran into an issue using ChartJS version 3 and @nagix's colorschemes plugin. I use NPM + Webpack to manage my Javascript dependencies, so if you're looking for a working NPM package, I suggest checking out: https://www.npmjs.com/package/chartjs-plugin-colorschemes-v3
The package is based on @m08pvv's fork of @zsu's fork of this repo. Kudos to both of them!
What about ChartJS Version 4?
I tested chartjs-plugin-colorschemes-v3
, and unfortunately, it does not work with version 4. I spent a few hours trying to figure out the problem, but I hit a brick wall. Perhaps someone smarter than me can figure out why colorschemes won't register itself as a global plugin in version 4.
I hope that @zsu and @m08pvv update their repos to enable Issues so we can report bugs and such.
I, like many others here, ran into an issue using ChartJS version 3 and @nagix's colorschemes plugin. I use NPM + Webpack to manage my Javascript dependencies, so if you're looking for a working NPM package, I suggest checking out: https://www.npmjs.com/package/chartjs-plugin-colorschemes-v3
The package is based on @m08pvv's fork of @zsu's fork of this repo. Kudos to both of them!
What about ChartJS Version 4?
I tested
chartjs-plugin-colorschemes-v3
, and unfortunately, it does not work with version 4. I spent a few hours trying to figure out the problem, but I hit a brick wall. Perhaps someone smarter than me can figure out why colorschemes won't register itself as a global plugin in version 4.I hope that @zhu and @m08pvv update their repos to enable Issues so we can report bugs and such.
I think it should be @zsu in the last line.
Oops! You are correct. Sorry about that. I have updated the first post.
I, like many others here, ran into an issue using ChartJS version 3 and @nagix's colorschemes plugin. I use NPM + Webpack to manage my Javascript dependencies, so if you're looking for a working NPM package, I suggest checking out: https://www.npmjs.com/package/chartjs-plugin-colorschemes-v3
The package is based on @m08pvv's fork of @zsu's fork of this repo. Kudos to both of them!
What about ChartJS Version 4?
I tested
chartjs-plugin-colorschemes-v3
, and unfortunately, it does not work with version 4. I spent a few hours trying to figure out the problem, but I hit a brick wall. Perhaps someone smarter than me can figure out why colorschemes won't register itself as a global plugin in version 4.I hope that @zsu and @m08pvv update their repos to enable Issues so we can report bugs and such.
I believe I've figured out how to make this plugin (the v3 version 0.5.4) work in chart.js v4 (at least, it seems to work in my brief test of it).
Summary of the changes:
On line 10, removed ", global.helpers" On line 11, remove ", helpers" On lines 1124, 1132 and 1155, replace "helpers.color" with "Chart.helpers.color"
That was all I needed to do.