I'm trying to limit the amount of X ticks displayed on the ChartJS config, but it keeps ignoring the setup.
const data = {
labels: ['', '', ''],
datasets: [{
label: '偽のラスパイ MQTT',
data: ['', '', ''],
fill: false,
borderColor: 'rgb(75, 192, 192)',
tension: 0.1
}]
};
const config = {
type: 'line',
data,
options: {
scales: {
xAxis: {
ticks: {
maxTicksLimit: 1
}
}
}
}
};
const myChart = new Chart(document.getElementById('myChart'), config);
Although I checked other posts, it seems to be some minor differences in the property name and property depth for the maxTicksLimit
Maybe the property name is incorrect?