0👍
Your scale config doesn’t seem consistent.
You added "ticks" inside the "time" node.
Try thee following:
scales: {
x: {
type: 'time',
ticks: {
stepSize: 15
},
time: {
unit: 'minute',
displayFormats: {
minute: 'HH:mm',
hour: 'HH:mm',
}
},
min: '{{ tour.chart_min }}',
max: '{{ tour.chart_max }}',
},
y: { beginAtZero: false }
},
- Chartjs-ChartJS onclick fill area (Radar Chart)
- Chartjs-Create a pie chart using an array from a data table in chart.js
Source:stackexchange.com