2👍
✅
According to documentation if you want to create a Category Scale
should work like this:
.....
scales: {
yAxes: [{
scaleLabel: {
display: true,
labelString: "ms"
},
ticks: {
beginAtZero: true,
suggestedMax: 100,
}
}],
xAxes: [{
scaleLabel: {
display: true,
labelString: "sec"
},
ticks: {
beginAtZero: true,
max: "a-value-from-array"
}
}]
}
I’m tempted to guess that you are using a notation like:
var y = { ticks.max: "hello" }
VM181:1 Uncaught SyntaxError: Unexpected token .
I think that explains your error.
Source:stackexchange.com