Problem with deleting points from a serie
Posted: Mon Jan 26, 2004 12:15 pm
Hi, every time I call the Delete method on a Line-serie, it throws an exception. I have now removed everything fancy as time formatting and everything.
Now my code is like this:
I'm using the TeeChart for .NET version 1.1.1452.42972
Now my code is like this:
Code: Select all
{
Steema.TeeChart.Styles.Line serie = new Steema.TeeChart.Styles.Line();
LineChart.Series.Add(serie);
for(int nIndex=0; nIndex<100; ++nIndex)
{
serie.Add(nIndex*0.1, nIndex);
}
try
{
serie.Delete(0, 50);
}
catch(Exception exp)
{
System.Diagnostics.Trace.WriteLine("SerieCount: " + serie.Count.ToString() + " Exception: " + exp.Message);
}
}