Pre loader

Additional AutoRange property

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

FYI: The “Post your feature request here!” link gives a 404.

I would like to see a feature implemented where the AutoRange can be applied for current data displayed in the plot (this is the current functionality of AutoRange) but also apply auto scaling based on the data displayed so far in the plot (AutoRangeHistory (e.g.)).

I frequently have FIFO plots showing realtime data coming in, and it would be very nice if the data in the plot only is auto scaled if the new data added is larger (or smaller) than any previously displayed value.

if (newData.Max() > _maxValueSeenSoFar)
   _maxValueSeenSoFar = newData.Max();
   AutoScale.Max = _maxValueSeenSoFar;
   DoAutoScale();

There should also be a ResetAutoRangeHistory to reset the scaling.

  • You must to post comments
0
0

Hello Kash,

Thanks for the suggestion! Possibly we could implement this with a ViewportManager. Are you aware of this feature?

You can derive from DefaultViewportManagerBase and override OnCalculateNewYRange() to output the desired result.

The base class will do normal AutoRanging (or just pass through the axis visiblerange if AutoRange is off). You can override this behaviour to do what you like e.g. return ranges based on history.

Hope this helps!

Andrew

  • 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