2๐
โ
You want to use the min
& max
attributes of the time
property :
options: {
scales: {
xAxes: [{
type: "time",
time: {
min: /* Set your min here .. */,
max: /* .. and your max here*/
}
}]
}
}
Source:stackexchange.com