All series points on FastLine disappearing
Posted: Tue Nov 24, 2009 10:58 pm
Hello, I am seeing a weird issue with the FastLine. Every so often, all of the x and y points will disppear from the series (fastLine1.XValues.Count == 0) for a very brief moment in time and then right after this all of the points will be there again.
When I watch the XValues.Count using a timer, I basically see:
# XValues
200
200
200
200
0
200
200
...
My program design is as follows:
A backgroundWorker reads data in a while loop over a network connection and saves this data in a List
A second backgroundWorker makes a local copy of the newest data from this List, parses it and adds it to a DataTable.
A Windows Forms timer then periodically refreshes the graph using the following function:
As mentioned, the FastLine has this behaviour periodically and nothing in my code is resetting or .Clear-ing the fastLine.
Has anyone experienced anything similar to this?
When I watch the XValues.Count using a timer, I basically see:
# XValues
200
200
200
200
0
200
200
...
My program design is as follows:
A backgroundWorker reads data in a while loop over a network connection and saves this data in a List
A second backgroundWorker makes a local copy of the newest data from this List, parses it and adds it to a DataTable.
A Windows Forms timer then periodically refreshes the graph using the following function:
Code: Select all
private void RefreshGraph()
{
for (int i = 0; i < tChartWeldTelem.Series.Count; i++)
{
try
{
tChartWeldTelem[i].CheckDataSource();
}
catch { }
}
}
Has anyone experienced anything similar to this?