Chartjs-Can I arrange labels of legend in Doughnut chart one by one?

0👍

You have to add this at options, see next:

options: {
    legend: {
        display: true,
        position: 'bottom',
        labels: {
            boxWidth: 10
        }
    }
}

https://www.chartjs.org/docs/latest/configuration/legend.html#legend-label-configuration here you can see all options what you can add to labels, see padding also, default is 10 you need only add boxWidth.

Leave a comment