Cumulative Sum Control
Show/Hide Series
This page describes how to show and hide a cumulative sum series. Multiple series may be shown at the same time; however, the data is more visible when only one series is shown at a time. 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 property is responsible for showing/hiding the series:
The first step is to include the necessary namespaces
for the controls and add new series.
Show and Hide Series
Below, we will show the second series and hide the first series (named
cssSeries in the
examples below) of a Cumulative Sum chart (named cscChart in the examples below):
[Visual Basic]
' Hide the first series
cssSeries.Show = False
' An alternative method of hiding the first series
cscChart.SeriesCollection(0).Show = False
' Show the second series
cscChart.SeriesCollection(1).Show = True
[Visual C#]
// Hide the first series
cssSeries.Show = false;
// An alternative method of hiding the first series
cscChart.SeriesCollection[0].Show = false;
// Show the second series
cscChart.SeriesCollection[1].Show = true;
Charts showing the first and then the second series: