Home › Forums › WinForms controls › Xceed Chart for WinForms › How to remove a series from a chart?
I am writing a functionality to allow the user to add and remove a series from a chart.
Using Chart.Add(Series) allows me to add.But Chart.Remove(Series) is not a supported function as claimed by the documentation, and it causes an exception when it is being used.
what is the right way to remove a series from a chart?
Imported from legacy forums. Posted by kml (had 2155 views)
Knowing the index of the series you want to remove, you can easily use the RemoveAt method to do it.
e.g.,Chart.Series.RemoveAt( index );
Imported from legacy forums. Posted by CharlesB (had 3266 views)