0👍
Fonts documentation: https://www.chartjs.org/docs/latest/general/fonts.html
You have a property to set the size of the font. You can choose to put it in the defaults before creating the chart. In this case you can just put a switch on it otherwise if you are going to set it in the config for each part you can set a fontsize you can do it with a ternary operator
Source:stackexchange.com