Pre loader

AutoRange not working as expected

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 LineRenderableSeriesViewModel, and I have a feature that allows the user to swap the dataseries with another. When this occurs I replace the dataseries property with the relevant dataseries.

However I find that when I do this, the chart does not always autorange to the where the new dataseries is. I can’t see the new plot when this occurs. I believe doesn’t happen if the new dataseries is being appended to, but only if the new dataseries that is chosen is not being appended.

Version
6.3.0
  • You must to post comments
0
0

Hi Phadon

By default, SciChart does not AutoRange. This behaviour has to be explicitly enabled by setting Axis.AutoRange = AutoRange.Always, or you can call SciChartSurface.ZoomExtents() to zoom to fit after data has changed.

Can you try this? ZoomExtents can also be called from a viewmodel by calling DataSeries.InvalidateParentSurface(RangeMode.ZoomToFit).

Best regards,
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