Home Forums Chart Support xValue Reply To: xValue



In the code sample shared above relY gives the pixel coordinates of the chart with respect to axisY. Instead, you can use relX to get the pixel co-ordinate with respect to axisX and use convertPixelToValue to convert it to corresponding value co-ordinate and update the stripLine’s label accordingly as shown in this updated JSFiddle.

If you are still facing the issue, kindly create JSFiddle reproducing the issue you are facing so that we can look into the code, understand the scenario better and help you resolve the same?

From what we have observed, sometimes things get delayed mostly when we are not able to reproduce the issue or not able to understand the exact requirements or the solution that we provide may not work properly due to the variation in chart-options being used by you and us.

Having a JSFiddle helps us in figuring out the issue and many a time we can just edit your code on JSFiddle to fix the issue right away.

Shashi Ranjan
Team CanvasJS