Home forums Using CanvasJS Cannot set a string array to x-axis in a responsive chart Reply To: Cannot set a string array to x-axis in a responsive chart

#24077

Indranil Deo
Member

@kris,

Since the difference in the consecutive timestamp is in terms of milliseconds, the corresponding labels displayed on the Axis X are in milliseconds. Setting the valueFormatString of the Axis X to “MMM DD YYYY hh:mm:ss” will work fine in your case.

Please take a look at this updated jsfiddle.

___________
Indranil Deo,
Team CanvasJS