SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
I wonder what the most efficient way is to completely reset (clean up) a SciChartGroup? I add all kinds of panes, add data series, add renderable series on different panes. Now, with a single call I like to reset the SciChartSurface to its original state (empty). I want to have all panes removed, as well as references the sciChartGroup may hold to panes, and references the panes hold to different renderable series and data series. I tried to clear ChartPaneViewModels, an observable collection that holds objects of type BaseChartPaneViewModel (which in turn implements IChildPane and ViewModelBase) but that did not have any effect. My SciChartGroup binds via ItemsSource to ChartPaneViewModels
What is your recommendation how to best reset the whole sciChartGroup?
The answer to this question is – it totally depends on what you did to the SciChartSurface in the first place!
Some pointers for you:
That should be it. Another way is to simply clear the RenderableSeries collection, set new X, YAxis and set a new ChartModifier instance. That way everything is new.
Does this help?
Please login first to submit.