Pre loader

Question on IXyDataSeries.FindIndex

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

We want to find YValue for a given Xvalue. If there is no exact matching point in the series, in order to interpolate it is required to get closest two points on left and right side of the given XValue. I tried to use IXyDataSeries.FindIndex with SearchMode.RoundDown and SearchMode.RoundUp. I’ve got two points from the left side. Please have a look at below image. Is this the expected behaviour?

Images
  • You must to post comments
0
0

Hi there,

Thanks for your enquiry.
Sorry about the delay in answering! We have to handle lots of requests either here and via email, so it is easy to leave something unanswered.

Concerning your enquiry, we can suggest using IRenderableSeries.HitTest (Point, useInterpolation) or IRenderableSeries.HitTest (Point, hitTestRadius, useInterpolation). These should help as that is their primary function. And please pass any value as Y coordinate – this is the way RolloverModifier works.

Anyway, it’s quite strange and unexpected that you faced any troubles with FindIndex; it is well tested and should work properly.

Please take a look and let us know if this can be a solution for you.

Best regards,
Olya

  • 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