How I can remove Series from Datachart?
dataChart.series().remove(m_series); give a exception.
Your answer solves my problem.
Thank you.
Hello Dennis,
May I ask what exception you are receiving? Can you provide some more details regarding when exactly you are removing the series. You can use the following code and sample to test without affecting your application and see while your debugging whether or not the Series collection clears out the series.
NumericSeries numericSeries1 = new NumericSeries(); numericSeries1.Key = "series1"; this.ultraChart1.CompositeChart.Series.AddRange(new ISeries[] {numericSeries1});this.ultraChart1.Series.Remove(numericSeries1);
Let me know if you have any additional questions.