Home Forums Chart Support How to get the tick at 12:00 instead of 00:00 Reply To: How to get the tick at 12:00 instead of 00:00

#61833

@flanguy,

Labels are positioned equidistantly, and controlling the starting point of axis labels is not possible as of now. However, you can use striplines to place ticks at required positions on the axis by setting the stripline thickness to 0 and tickThickness to 1 as shown in the code snippet below:

{
	value: new Date(2026, 0, 6, 12, 0, 0),
	labelPlacement: "outside",
	label: "12PM",
	labelFontColor: "grey",
	labelBackgroundColor: "transparent",
	thickness: 0,
	tickThickness: 1,
	tickColor: "grey"
}

Please check this JSFiddle for a working example.


Thangaraj Raman
Team CanvasJS