Home Forums Chart Support XAxis Labels with Date only (no timestamp) Reply To: XAxis Labels with Date only (no timestamp)

#34542

@jeffe,

You can use valueFormatString property to define how X-axis labels must be formatted before they appear. Please take a look at this code-snippet for an example on showing only date as the labels,

axisX:{      
   valueFormatString: "DD-MMM" ,
}, 

Kindly, take a look at this JSFiddle for an example on the same.

date time formatting using valueFormatString property


Adithya Menon
Team CanvasJS