0👍
✅
try this
options: {
responsive: true,
maintainAspectRatio: false,
scales: {
y: {
beginAtZero: true
},
x: {
ticks: {
callback: function(val, index) {
// Hide the label of every 2nd dataset
return index % 2 === 0 ? this.getLabelForValue(val) : '';
},
color: 'red',
font:{
size:20
}
}
}
}
}
if u want to change default font size use Chart.defaults.font.size option
https://www.chartjs.org/docs/latest/api/interfaces/fontspec.html
Source:stackexchange.com