I am attempting to get the mouse coordinates on a MouseDown event. I want the coordinates to be in the same scale as the X and Y axis, so that if i have a graph from 0-1 in both X and Y, clicking the top right quadrant will result in a coordinate of roughly (0.75, 0.75).
How can I accomplish this?
Alternatively, I would like to get the screen coordinates of a single data point on the chart.
In the end, what I am trying to do is "Select" the nearest point to where a user clicks their mouse, but i need to know either where the point is drawn on the screen, or at least on the chart, or where the mouse is clicked with regards to the data values.
thanks in advance!
for reference, i actually found a much simpler method, since i know the data values of my points, i can use xAxis.GetScaledValue in asimilar way to xAxis.GetUnscaledValue in order to go the opposite direction
Not a problem, let me know if you have any other questions.
-Graham
I believe that will work, it will take some finagling on my part to get it to do exactly what i want, but that's what i needed.
Thanks for your help Graham!!
Does this help?
http://community.infragistics.com/forums/p/49255/260628.aspx#260628