score:2

Accepted answer

The Chart.js docs you linked to specify this structure for formatting time axes labels:

time: {
    displayFormats: {
        quarter: 'MMM YYYY'
    }
}

so plugging in your format that becomes:

time: {
    displayFormats: {
        second: this.timeFormat
    }
}

You were right, just a tiny detail! (updated Fiddle).


Related Query

More Query from same tag