SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components
I have multiple charts that receive data and sometimes the data needs to be reset and the plotting needs to start over.
When I reset the data I set it to: new XyDataSeries<TimeSpan, double>();
This works great for the data, but the charts don’t refresh. I have to close the window with the chart and reopen it in order to get the new data to show up in the chart.
Is there a command I can send the charts that will clear the existing data and start plotting the new data without having to reopen a window?
Thanks for your question.
You can call DataSeries.Clear() method to remove old Series and then add a new one.
Your approach should also work. Please see if you receive any errors. If there are no errors please send us a small sample project reproducing this issue for investigation.
Please login first to submit.