Open DavideViolante opened 3 years ago
I tried to replace Chart.plugins.register({
with Chart.register({
, no error in console now, but is not working yet.
Someone knows how to make it work on chartjs v3?
Same issue.
After running npm i chartjs-plugin-labels
, I get the following error:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: ########
npm ERR! Found: chart.js@3.2.1
npm ERR! node_modules/chart.js
npm ERR! chart.js@"^3.2.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer chart.js@"^2.6.0" from chartjs-plugin-labels@1.1.0
npm ERR! node_modules/chartjs-plugin-labels
npm ERR! chartjs-plugin-labels@"*" from the root project
Finally made it work with Chart.js v3 here: https://github.com/DavideViolante/chartjs-plugin-labels I don't even open a PR since I doubt it will be merged, this repo has no updates since 3 years... but I try to send an email to author.
edit: author doesnt reply.
edit: see diff here if you are curious.
Finally made it work with Chart.js v3 here: https://github.com/DavideViolante/chartjs-plugin-labels I don't even open a PR since I doubt it will be merged, this repo has no updates since 3 years... but I try to send an email to author.
edit: author doesnt reply.
Thanks so much!
Finally made it work with Chart.js v3 here: https://github.com/DavideViolante/chartjs-plugin-labels I don't even open a PR since I doubt it will be merged, this repo has no updates since 3 years... but I try to send an email to author.
edit: author doesnt reply.
Thanks bro
Finally made it work with Chart.js v3 here: https://github.com/DavideViolante/chartjs-plugin-labels I don't even open a PR since I doubt it will be merged, this repo has no updates since 3 years... but I try to send an email to author.
edit: author doesnt reply.
Thank you!!! I'm new to JavaScript and I thought I was doing something wrong, so thank you for saving my sanity!
Thanks bro, made my day! 👍🏻
Does it work on chartjs v3.2.1?
edit
Working version here, install with:
npm i chart.js-plugin-labels-dv