Home Forums Chart Support MySQL xAxis date format Reply To: MySQL xAxis date format

#7089

Hi,

CanvasJS Expects the value to be either timeStamp or Date object – strings are not parsed automatically. Hence you can either parse the date at client side or use the time Stamp value.

For displaying the time in axis labels, you can set the valueFormatString property to hh:mm:ss tt.

Please take a look at this JSFiddle.

Chart with axisx labels in time format

___
Anjali