Chartjs-Chart.JS: Show custom labels permanentely on doughnut chart

1👍

Okay, I didn’t read properly…

Here’s the solution: https://jsfiddle.net/o4kyt69j/2/

The code should be:

options: {
    plugins: {
        datalabels: {
            formatter: function(value) {
                return value + " kWh";
            }
        }
    }
}

Leave a comment