Home Forums Chart Support Time axis with valueFormatString not working Reply To: Time axis with valueFormatString not working

#19284

@ahmedcharef,

Based on the sample data shared by you the Date passed to the dataPoints is not in standard format. Instead, passing the Date in the standard JavaScript DateTime format new Date("2018-01-07T20:51:05.000Z") will work fine in your case. Below is a sample dataPoint –

{ x: new Date("2018-01-07T20:51:05.000Z"), y: -6 }

Also, kindly take a look at this JSFiddle for a working sample.

chart with date time axis

___________
Indranil Deo
Team CanvasJS