Chartjs-How to add color to text using pluginService for Chart.js?

1👍

You can set the fontcolor with fillstyle:

ctx.fillStyle = 'blue';

Just set it to the color you need similiar to the way you are setting the text, if you defined the color in the option’s aswell you could do it like this:

ctx.fillStyle = chart.options.centercolor;

Make sure to remove labelFontColor : "#DC1B3A"from your code.

Leave a comment