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.
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).
Please login first to submit.