Home › Forums › Chart Support › Time axis with valueFormatString not working › Reply To: Time axis with valueFormatString not working
@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 –
new Date("2018-01-07T20:51:05.000Z")
{ x: new Date("2018-01-07T20:51:05.000Z"), y: -6 }
Also, kindly take a look at this JSFiddle for a working sample.
___________ Indranil Deo Team CanvasJS