[Chartjs]-Chart.js โ€“ How to remove percentage data labels?

0๐Ÿ‘

โœ…

There must be some logic in your code. ctx.fillText(value + โ€˜%โ€™, position.x, position.y); like this. I donโ€™t see that in your code given code. if it is there, Please remove it. It will work.

2๐Ÿ‘

If you want to remove only the percentages, just add this line in your options

labels: { render: () => {} }

It will look like:

options: { 
        plugins: {
          labels: {
            render: () => {}
          }
        }
    }

Leave a comment