Cumulative Sum Control
Exclude a Subgroup from Calculations
A group can be excluded from the series calculations.
The cumulative sum control of the .Net Analytics package is of the following type:
The series class of the cumulative sum chart is:
The subgroup class of a cumulative sum series is:
and the following property is used for excluding a subgroup:
The first step is to include the necessary namespaces
for the controls, add a new series, and add new subgroups.
Exclude a Subgroup
Below, we will exclude a Cumulative Sum subgroup (named cssSubgroup in the examples below) of a Cumulative Sum series (named cssSeries in the
examples below). The process is similar for the other charts listed above:
[Visual Basic]
' Exclude the subgroup
cssSubgroup.ExcludeFromCalculation = True
' Another alternative is to exclude the ith
(2 below) subgroup directly from the series
cssSeries(2).ExcludeFromCalculation = True
[Visual C#]
// Exclude the subgroup
cssSubgroup.ExcludeFromCalculation = true;
// Another alternative is to
exclude the ith (2 below) subgroup directly from the series
cssSeries[2].ExcludeFromCalculation = true;
Charts showing before and after the subgroup has been excluded: