3👍
type: 'time',
display: true,
time: {
parser: "YYYY-MM-DDTHH:mm:ss",
},
You can add in scale > xAxes > time according to ChartJS And you can use also add time format of MomentJS
type: 'time',
display: true,
distribution: 'series',
time: {
unit:"year",
displayFormats:{year:'YYYY'},
min:'1970' ,
max:'2018',
}
1👍
I don’t know if this will help you, but when I tried to add a date “2017/02/29”, the x-axis also goes back to 1970, because there were only 28 days in Feb 2017!
Source:stackexchange.com