I'm trying to delete points as they are removed from the screen. The problem is, I don't know how I can find the location of the earliest point.
From the example...
tChart1[0].YValues.Value[0] =103.96; MessageBox.Show(tChart1[0].YValues.First.ToString());
I can delete point 0, but after that, is that location ever used again? Is there a way that I can use a "get_FirstPoint" style function, or another way to do it that you could recommend.
I never know how many points I will need to remove each time, as every second, between 0 and 3 points are added, so I'd like to be able to use some code like: -
Code: Select all
minimum = x value of last point being displayed
while (first point < minimum)
delete first point
Is there a way to do that, or a better way that anyone knows.
Cheers