Home Forums WinForms controls Xceed Chart for WinForms How to remove a series from a chart?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #18870 |

    Hi,

    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?

    Thanks,
    KM

    Imported from legacy forums. Posted by kml (had 2155 views)

    Xceed Support
    Member
    Post count: 5658

    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)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.