Cumulative Sum Control
Remove a Subgroup
A subgroup can be removed from the series.
The cumulative sum control of the .Net Analytics package is of the following type:
The series class of the cumulative sum chart is:
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 Cumulative Sum series (named cssSeries in the
examples below) of a Cumulative Sum chart (named cscChart in the examples below):
[Visual Basic]
' Remove the ith (0 below) subgroup
cssSeries.RemoveAt(0)
' Another alternative is to remove the ith
(0 below) subgroup directly from the jth (0 below) series
cscChart.SeriesCollection(0).RemoveAt(0)
[Visual C#]
// Remove the ith (0 below) subgroup
cssSeries.RemoveAt(0);
// Another alternative is to remove the ith
(0 below) subgroup directly from the jth (0 below) series
cscChart.SeriesCollection[0].RemoveAt(0);
Charts showing before and after the subgroup has been removed:
Remove All Subgroups
Below, we will clear all subgroups:
[Visual Basic]
' Clear all the subgroups
cssSeries.Clear()
' Another alternative is to clear all the subgroups directly from the jth (0 below) series
cscChart.SeriesCollection(0).Clear()
[Visual C#]
// Clear all the subgroups
cssSeries.Clear();
// Another alternative is to clear all the subgroups directly from the jth (0
below) series
cscChart.SeriesCollection[0].Clear();