Cumulative Sum Control


Show/Hide a Subgroup

A subgroup can be hidden from the drawing of a series. However, the series calculations are still calculated for the subgroup. Exclude the subgroup to not include it in the 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:

The following property at the subgroup level is used for showing/hiding the subgroup:

The first step is to include the necessary namespaces for the controls, add a new series, and add new subgroups.

Hide a Subgroup

Below, we will hide a Cumulative Sum subgroup (named cssSubgroup in the examples below) of a Cumulative Sum series (named cssSeries in the examples below):

[Visual Basic]
' Hide the subgroup
cssSubgroup.Show = False

' Another alternative is to hide the ith (2 below) subgroup directly from the series
cssSeries(2).Show = False

[Visual C#]
// Hide the subgroup
cssSubgroup.Show = false;

// Another alternative is to hide the ith (2 below) subgroup directly from the series
cssSeries[2].Show = false;

Charts showing before and after the subgroup has been hidden:

Cumulative Sum chart with subgroup not hidden Cumulative Sum chart with subgroup hidden