Home › Forums › Feature Requests & Feedback › how to get chart.axisX[0].convertValueToPixel with Date axis? › Reply To: how to get chart.axisX[0].convertValueToPixel with Date axis?
@quynhtd,
You can pass x-value in timestamp (either by passing timestamp in milliseconds directly or using getTime()) to convertValueToPixel in order to get the pixel coordinate of a given value over dateTime axis.
Please check this jsfiddle.
— Vishwas R Team CanvasJS