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

fixed issues #10

Closed Karapasa closed 2 years ago

Karapasa commented 2 years ago

Fixed output of multiple labels. Fixed forced output of labels at another charts, which have not options with labels

DavideViolante commented 2 years ago

It seems like the only needed change was this:

if (!options.length)

Thank you for the contribution, I just changed only that line to fix #1, but not the other line changes. If the code needs other changes open another PR indicating which issues you are going to fix.

PS: also the code wasn't compliant with eslint, install it in your IDE.