I am not able to format the display format of Time. I am using chart.js v4.2.1 and date-fns v3.0.0(this as script from cdnjs).
I am able to get the unit but the display format I want is Day of a week day.Month (e.g: Mo 12.04, Tue 13.04, etc…)
Here is the code:
scales: {
x: {
type: 'time',
time: {
unit: 'day',
displayFormats: {
day: 'need to be done'
}
}
}