Pre loader

Tag: 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 votes
7k views

Hi,

I’ve implemented a Custom Rollover Modifier (by basically robbing the example given here – http://support.scichart.com/index.php?/Knowledgebase/Article/View/17235/32/custom-chartmodifiers—part-1—creating-a-custom-rollover-modifier) and it works fine with sorted data.

Unfortunately, a particular chart DataSeries we use has an additional terminating point added to the end but that points X coordinate is out of sequence with the rest and causes the DataSeries to be identified as being unsorted. When I try to use it with search mode “Nearest” it throws an exception saying the search mode must be “Exact” for it to work.

Here
https://www.scichart.com/questions/question/fix-data-values-that-arrive-in-a-non-sorted-date-time-order
You seem to suggest that SciChart should now handle unsorted data – Does this mean it handles it for display purposes only or should it work for a FindIndex?

An interesting observation is that if I use a standard rollover modifier with the same DataSeries it works – I assume it’s doing something with the data or it’s using a different method of finding the nearest point – could you tell me what this is?

Another thing I tried was to remove the last point from the series but the IsSorted flag remains as false and the FindIndex then still fails. I’m not sure what else to try short of copying the points over individually to a new DataSeries but this is seriously innefficient given the circumstances.

Some advice would be greatly appreciated.

Cheer
/Stuart

Showing 1 result

Try SciChart Today

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

Start TrialCase Studies