SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, iOS Chart, Android Chart and JavaScript Chart Components

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.