Time Series Controls


Remove a Series

This page describes how to remove a series. The time series 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 an Individuals chart (named indChart in the examples below). The process is similar for the other charts:

[Visual Basic]
' Remove the ith (0 below) series
indChart.SeriesCollection.RemoveAt(0)

[Visual C#]
// Remove the ith (0 below) series
indChart.SeriesCollection.RemoveAt(0);

Remove All Series

Below, we will clear all series:

[Visual Basic]
' Clear all the series
indChart.SeriesCollection.Clear()

[Visual C#]
// Clear all the series
indChart.SeriesCollection.Clear();