Chart.js
Chart.js copied to clipboard
Radar how to set the starting and ending numbers of the scale?
Thank you for helping me
The scale is only the minimum and maximum.I want to scale the radar chart from 0 to 100, how should I set?
var myChart = new Chart(ctx, {
type: 'radar',
data: {
labels: ["HTML", "CSS", "Javascript", "jQuery", "node.js", "Vue.js"],
datasets: [{
label: '# of Votes',
data: [75,75,70,70,70,65],
backgroundColor: [
'rgba(255, 99, 132, 0.2)',
'rgba(54, 162, 235, 0.2)',
'rgba(255, 206, 86, 0.2)',
'rgba(75, 192, 192, 0.2)',
'rgba(153, 102, 255, 0.2)',
'rgba(255, 159, 64, 0.2)'
],
borderColor: [
'rgba(255,99,132,1)',
'rgba(54, 162, 235, 1)',
'rgba(255, 206, 86, 1)',
'rgba(75, 192, 192, 1)',
'rgba(153, 102, 255, 1)',
'rgba(255, 159, 64, 1)'
],
borderWidth: 1
},
]
},
options: {
}
@LiangTiger
const options = {
scale: {
ticks: {
min: 0,
max: 100
}
}
}