Time Series Controls
Remove a Subgroup
This page describes how to remove a subgroup.
The time series controls of the .Net Analytics package that are based on subgroups include the following:
The series classes of these respective charts are:
and the following properties are used for removing subgroups:
The first step is to include the necessary namespaces
for the controls, add a new series, and add new subgroups.
Remove a Single Subgroup
Below, we will remove a subgroup of a Xbar series (named xsSeries in the
examples below) of a Xbar chart (named xbarChart in the examples below). The process is similar for the other charts listed above:
[Visual Basic]
' Remove the ith (2 below) subgroup
xsSeries.RemoveAt(2)
' Another alternative is to remove the ith
(2 below) subgroup directly from the jth (0 below) series
xbarChart.SeriesCollection(0).RemoveAt(2)
[Visual C#]
// Remove the ith (2 below) subgroup
xsSeries.RemoveAt(2);
// Another alternative is to remove the ith
(2 below) subgroup directly from the jth (0 below) series
xbarChart.SeriesCollection[0].RemoveAt(2);
Remove All Subgroups
Below, we will clear all subgroups:
[Visual Basic]
' Clear all the subgroups
xsSeries.Clear()
' Another alternative is to clear all the subgroups directly from the jth (0 below) series
xbarChart.SeriesCollection(0).Clear()
[Visual C#]
// Clear all the subgroups
xsSeries.Clear();
// Another alternative is to clear all the subgroups directly from the jth (0
below) series
xbarChart.SeriesCollection[0].Clear();