Cumulative Sum Control


Edit a Series Appearance

This page describes how to change the appearance of the series of a cumulative sum subgroup. 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 responsible for the cell appearance:

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

Edit a Series Appearance

Below, we will change the appearance of the curve for a Cumulative Sum series (named cssSeries in the examples below):

[Visual Basic]
' Change the line attributes for the series
cssSeries.LineColor = Color.DarkGreen
cssSeries.LineStyle = System.Drawing.Drawing2D.DashStyle.Dot
cssSeries.LineWidth = 2

' Change the point attributes for the series
cssSeries.PointColor = Color.DarkRed
cssSeries.PointSize = 7

[Visual C#]
// Change the line attributes for the series
cssSeries.LineColor = Color.DarkGreen;
cssSeries.LineStyle = System.Drawing.Drawing2D.DashStyle.Dot;
cssSeries.LineWidth = 2;

// Change the point attributes for the series
cssSeries.PointColor = Color.DarkRed;
cssSeries.PointSize = 7;

Charts showing before and after the series appearances have been edited:

Cumulative Sum chart without series appearance edited Cumulative Sum chart with series appearance edited