Pre loader

Best way to "reset/refresh" a chart

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 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!

Version
5.3.0.11954
  • You must to post comments
0
0

Hi Greg,

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.

  • 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