1👍
✅
I think the issue is that you are using round
option in the time.
For what you need, you should use unit
option, which is defining the time unit on the axis.
scales: {
x: {
type: 'time',
time: {
unit: 'day' // <-- to use
}
},
y: {
title: {
display: true,
stacked: true,
text: 'Секунды',
beginAtZero: true
}
}
}
Source:stackexchange.com