Attributes Controls
Remove a Series
This page describes how to remove a series.
The attributes controls of the .Net Analytics package include the following:
The series classes of the respective charts are:
and the following properties are used for removing series:
The first step is to include the necessary namespaces
for the controls and add a new series.
Remove a Single Series
Below, we will remove a series from a c-Chart (named ccChart in the
examples below). The process is similar for the other charts:
[Visual Basic]
' Remove the ith (0 below) series
ccChart.SeriesCollection.RemoveAt(0)
[Visual C#]
// Remove the ith (0 below) series
ccChart.SeriesCollection.RemoveAt(0);
Remove All Series
Below, we will clear all series:
[Visual Basic]
' Clear all the series
ccChart.SeriesCollection.Clear()
[Visual C#]
// Clear all the series
ccChart.SeriesCollection.Clear();