0๐
โ
I solved the problem this way.
scales: {
xAxes: [
{
ticks: {
maxTicksLimit: 31,
maxRotation: 90,
minRotation: 45,
},
type: "time",
time: {
min: window.minDate,
max: window.maxDate,
parser: "DD.MM.YYYY HH:mm:ss",
unit: window.unit,
displayFormats: {
day: "DD.MM",
month: "MMMM",
week: "DD.MM",
},
display: true,
},
},
],
},
But now you need to stretch the line of the graph from the beginning to the end
img example
Source:stackexchange.com