1👍
Before you call new Chart(), you can set the default fontSize Chart.defaults.global.defaultFontSize = fontSize;
, default its 10.
If you get the width and height you can check the resolution and adjust the fontsize based on that.
- Chartjs-Changing grid color in radar chart
- Chartjs-ChartJs functional component does not refresh even when forceUpdate
Source:stackexchange.com