Chartjs-Chart JS date-hour AxesX

1👍

Chart js uses moment.js time formatters to format the tooltip string.
So I think the moment format tokens should work.
Read more about here.
https://momentjs.com/docs/#/displaying/format/

If the date is 2017-01-29 10:00:00 AM,

MMM-DD-HH will equivalent to Jan-29-10

But I don’t see any HOUR part in your date string. If you want the hours to be formatted you should input the date string in the following standard way with time data.

2013-02-04T22:44:30.652Z

There are several ISO standards available. You can choose one.
Read more about here.
https://momentjs.com/docs/#/displaying/as-iso-string/

Leave a comment