I have a C# WinForms app which displays the chart. Every time the source data changes, I do
foreach (var s in chart.Series)
s.Points.Clear();
foreach (var item in sourceData)
chart.Series["Prsr"].Points.AddY(item.Prsr);
The problem is that the souceData may have over 30k items. Above method in my case blocks the UI for over 1 second.
Does anyone know any better method to avoid the problem?
sourceData is a List<obj>
I also tried with the DataBindY:
chartMain.Series["Prsr"].Points.DataBindY(sourceData, "Prsr");
but it didn't help.