[Chartjs]-How do I change the textsize in of doughnut in react-chartjs-2?

1👍

Depending on the fiddle , you’re setting the text font size in pixels ,
why not trying to change to em instead of px

...
var fontSize = (height / 100).toFixed(2);
ctx.font = fontSize + "em"; //<-------- here 
...

Leave a comment