elektra Posted April 1, 2010 Report Share Posted April 1, 2010 I have the folowwing code: this.chart1.Data.Series = 0; // When I create the chart, the default count of series is 3 , so I wanted to remove the series by resetting the count; It doesn't work this.chart1.Data.Series ++; // the number of series becomes 4 this.chart1.Series[chart1.Series.Count - 1].Text = "testName"; // the Text I is assigned to the 4th Element. Is there a way to get it working. I have also tried chart1.Series.clear() and remove(), removeAt() => It doesn't work Quote Link to comment Share on other sites More sharing options...
Frank Posted April 2, 2010 Report Share Posted April 2, 2010 To completely remove all data from the chart do: chart.Data.Clear(); Otherwise, to increase the number of series is is ok to do: chart.Data.Series++ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.