[Chartjs]-ChartJS with ChartJS DataLabels: Change Color per Dataset for Value Labels

3👍

They gave me the answer on the ChartJS DataLabels forum:

plugins: {
    datalabels: {
        color: function(ctx) {
            // use the same color as the border
            return ctx.dataset.borderColor
        }
    }
}

Leave a comment