Cumulative Sum Control
Remove a Sample from a Subgroup
This page describes how to remove a sample from a subgroup.
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 properties are used for removing samples:
The first step is to include the necessary namespaces
for the controls, add a new series, and add new subgroups.
Remove a Single Sample
Below, we will remove a sample from 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]
' Remove the ith (2 below) sample
cssSubgroup.RemoveAt(2)
' Another alternative is to remove the ith
(2 below) sample directly from the jth (0 below) subgroup
cssSeries(0).RemoveAt(2)
[Visual C#]
// Remove the ith (2 below) sample
cssSubgroup.RemoveAt(2);
// Another alternative is to remove the ith
(2 below) sample directly from the jth (0 below) subgroup
cssSeries[0].RemoveAt(2);
Remove All Samples
Below, we will clear all samples:
[Visual Basic]
' Clear all the samples
cssSubgroup.Clear()
' Another alternative is to clear all the samples directly from the jth (0
below) subgroup
cssSeries(0).Clear()
[Visual C#]
// Clear all the samples
cssSubgroup.Clear();
' Another alternative is to clear all the samples directly from the jth (0
below) subgroup
cssSeries[0].Clear();