Pre loader

Zoom or pan doesnt work for all series

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

Hello Andrew,

when zooming a graph only 1 series is rendered (in this case). I have added a simple project that you can easily test. The values are loaded from xml files to simplify. I know it depends on the values but cant really understand what happens.
I had this issue before and waited for the new version to see if it solved. The behavior is exactly the same.

Thank you very much for your support

Marcel

Attachments
  • You must to post comments
0
0

Hello Marcel,

I found out what caused that issue. Are you aware that SciChart supports only sorted data for X values (because of performance reasons). So you need just sort your data:

            speedVsDistance.Append(data1.XData, data1.YData);

            var list = new List<double>(data2.XData);
            list.Sort();

            acceleration.Append(list, data2.YData);

For more info you could take a look at HitTest on XyScatterRenderable Series and Fix data values that arrive in a non sorted date time order articles.

Note soon we will be investigating auto-sorting of data internally as this has been requested by a few customers.

Hope this helps!

Best regards,
Yuriy

  • Marcel
    Thank you very much for your fast answer. In fact the array is correctly ordered but because I use the invertedAxis property that array should be inverted as well. Didnt know about the sort requirement, but it renders anyway with zoom extends. Best regards, Marcel
  • 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