Chartjs-Chart.js Increase font size for higher resolution (i.e. monitor-agnostic chart configuration )

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.

Leave a comment