1👍
✅
Use the time
axis:
options: {
scales: {
xAxes: [{
type: "time",
time: {
unit: "hour",
displayFormats: {
hour: "HH:mm"
}
}
}]
...
Be sure to use the ‘bundled build’ of Chart.js, or include moment.js before Chart.js.
Source:stackexchange.com