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

NaN and overlapping on bar chart #4

Closed amitguptagwl closed 1 year ago

amitguptagwl commented 3 years ago

When the value is 0 for some labels.

Screenshot from 2021-07-06 09-46-36

render: 'value' and render: 'percentage' both gives output labels in percentage only. Even if I don't set any label config in plugins, it automatically render chart with % labels.

DavideViolante commented 1 year ago
        plugins: {
          labels: [
            {
              render: 'value',
              position: 'outside' // this prevents overlapping
            },
            {
              render: 'percentage'
            }
          ]
        }