Home forums Using CanvasJS Need 24 hour time slot along x-axis Reply To: Need 24 hour time slot along x-axis

#23929

@gurpreet2501,

In the above mentioned code snippet, you’re using label to display date and time value. Instead, you need to assign the Date Object to X values and set the valueFormatString: "HH:mm". Please refer this documentation page for information on valueFormatString. Also, please take a look at this jsfiddle.

__
Shashi Ranjan
Team CanvasJS