Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
Remove Series from DataChart
posted

How I can remove Series from Datachart?

dataChart.series().remove(m_series); give a exception.

Parents
  • 26905
    Verified Answer
    Offline posted

    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.

    RemoveChartSeries.zip
Reply Children
No Data