Home forums Using CanvasJS convertPixelToValue convertValueToPixel issue Reply To: convertPixelToValue convertValueToPixel issue

#23434

Priyanka M S
Member

@elcollie,

Can you advise on how to get the second scenario working accurately?

In the code you have shared, you are trying to trigger mouse event in the second chart based on the value coordinates of the first chart. Instead you can trigger mouse event in the second chart based on the pixel coordinates of the first chart as shown in this updated JSFiddle.

__
Priyanka M S
Team CanvasJS