DavideViolante / chartjs-plugin-labels

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

Position outside mixed with another one doesn't show outside labels #1

Closed DavideViolante closed 2 years ago

DavideViolante commented 3 years ago

Original version

original

This repo

mine

Karapasa commented 2 years ago

448 line - Chart.register if (!Array.isArray(options)) { options = [options]; } remove "!" But you will always have to create an array, even for one element

DavideViolante commented 2 years ago

@Karapasa Can you please elaborate more? If I remove the "!" nothing works. If you know how to fix, can you send a PR?