You must be logged in to post your query.
Home › Forums › Feature Requests & Feedback › how to get chart.axisX[0].convertValueToPixel with Date axis?
Tagged: convertValueToPixel, date axis
https://canvasjs.com/docs/charts/methods/axis/convert-value-to-pixel/
In this topic, how to use chart.axisX[0].convertValueToPixel function 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
OK, i used old version so it didn’t work. It’s ok now. Thanks man!
You must be logged in to reply to this topic. Login/Register