I am using the latest version of chart.js from here https://cdnjs.com/libraries/Chart.js (the first link in the CDN website). I want to change the font size of the pointLabels but I failed. I also failed in setting display: false for the ticks. They only thing working is the font size of the ticks. Can anybody help me out?
const data = {
labels: [
'Eating',
'Drinking',
'Sleeping',
'Designing',
'Coding',
'Cycling',
'Running'
],
datasets: [{
data: [4, 1, 1, 4, 2, 3, 5],
fill: false,
borderColor: 'rgb(255, 99, 132)',
pointRadius: 1,
}]
};
const config = {
type: 'radar',
data: data,
options: {
elements: {
line: {borderWidth: 1}
},
scale: {
ticks: {
beginAtZero: true,
max: 5,
min: 0,
stepSize: 1,
font: {
size: 6
}
},
pointLabels:{
fontSize: 20
}
},
plugins: {
legend: {
display: false
}
}
},
};
var myChart = new Chart(
document.getElementById('chart'),
config
);