DavideViolante / chartjs-plugin-labels

Plugin for Chart.js to display percentage, value or label in Pie or Doughnut.
MIT License
55 stars 18 forks source link

Not working with ng2-charts (Angular wrapper) #18

Closed JacobStraberg closed 1 year ago

JacobStraberg commented 1 year ago

Thank you for making this plugin available. Unfortunately, I could not get it to work with ng2-charts (Angular wrapper) for my radar chart.

EDIT: I read you are looking for Angular contributors. I wish I could help, but I do not know how it works.

DavideViolante commented 1 year ago

Unfortunately I don't know how to make it work too. I just forked the repo to make it work on Chartjs v3. Try using this alternative instead https://chartjs-plugin-datalabels.netlify.app/

eduard-landclan commented 1 year ago

You don't need ng2-charts for using chart.js in Angular projects. With the latest version you should be able to use both chart.js and the labels plugin without ng2-charts.

eduard-landclan commented 1 year ago

Codesandbox example: https://codesandbox.io/p/sandbox/chart-js-plugin-demo-fmtvxd