Pre loader

Getting all Y-coordinate values

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

I have a chart with four graphs, (four curves). I would like to get the Y-coordinate values for each of these curves, at the point where the mouse is positioned or clicked.

This code :

Point mousePoint;    
double yValue = YAxis.GetDataValue(mousePoint.Y);

gets only one of the y values, only one double value. I would like all the four y values, four double values. How can I get all these four y values? Thanks.

Version
Version available on 10 September 2021
  • You must to post comments
0
0

I think I got the answer. We have to just do this:

double yValue1 = YAxes[0].GetDataValue(mousePoint.Y);
double yValue2 = YAxes[1].GetDataValue(mousePoint.Y);

Sorry for bothering you for such a small thing. Thanks. The documentation on your site is great.

  • Oleksandr Shvets
    Hi Amarnath, Thanks for your inquiry. We’re glad you’ve found a solution! If you have any further questions please feel free to ask. With best regards, Oleksandr
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies