I need to get Yaxis value of mouse with using OnClick Event. If I use CursorModifier I can get only one value of “primary” or first declared axis. So even this axis’s Visibility Property set as Collapsed I get is’s Y Value, and if displayed axes and “primary” have a different scale (and they have), I get a very wrong value. How can I get Y value of displayed axes or of all axes?
- Ivan Kozlov asked 7 years ago
- You must login to post comments
Hi Ivan
To get the Y-value on an axis on mouse down, please use the following code:
Point mousePoint;
double yValue = YAxis.GetDataValue(mousePoint.Y);
That literally is it. It will work for visible, or invisible axis.
Best regards,
Andrew
- Andrew Burnett-Thompson answered 7 years ago
- You must login to post comments
Please login first to submit.