Chartjs-What are these line-boxes called in Chart.js, and how do I turn them off?

0👍

Thanks again to LeeLanalee for pointing me in the right direction.

Unbeknownst to me, there was a Chart.js global plugin set up for all the doughnut charts called chartjs-plugin-piechart-outlabels (https://www.npmjs.com/package/chartjs-plugin-piechart-outlabels). As per following SO post, I was able to disable the line-box labels for specific instances of the doughnut charts (in React) as follows:

ChartJs – Pie Chart – how to remove labels that are on the pie chart

options={ {
    plugins: {
        outlabels: false
    }
} }

Thanks again!

Leave a comment