How do I get the X and Y coordinates of the chart using crosshair snap?

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Ammar on 8th April 2013

I want to know How can I display both the X and Y co-ordinates from a chart. Is there any way to return the x and y co-ords on click or on snap function?
Posted by RGraph support on 9th April 2013
Hi there,

With the Scatter chart you can use:


in your event listener. e represents the event object.

There's no concept of an X scale with the Line chart so if you want an X scale you'll need to use the Scatter chart.

Richard, RGraph Support

Add a reply

« Back to message list