Skip to main content

Stacked Series Elements

Version: 6.0

Stacked Series Elements

A Stacked Series Element is a collection of values that will be added to a stacked series to be plotted as a stacked chart. There are four different groups of Stacked Series Elements corresponding to the four different types of stacked charts (stacked area, stacked bar, stacked column and stacked line). Each stacked series element group will have both an indexed and a date-time type.

Stacked Area Series Elements​

A StackedAreaSeries has two types of elements:

DateTimeStackedAreaSeriesElement : This is a collection of DateTimeStackedArea values. It uses the .NET Framework's DateTime structure for setting the date portion of the values in the series.

The below code shows how to create and add values to a DateTimeStackedAreaSeriesElement.

DateTimeStackedAreaSeriesElement areaSeries = new DateTimeStackedAreaSeriesElement("Website A");
areaSeries.Values.Add(521, new DateTime(2004, 1, 1));
areaSeries.Values.Add(969, new DateTime(2004, 1, 2));
areaSeries.Values.Add(452, new DateTime(2004, 1, 3));
areaSeries.Values.Add(347, new DateTime(2004, 1, 4));
Dim MyareaSeries As DateTimeStackedAreaSeriesElement = New DateTimeStackedAreaSeriesElement("Website A")
MyareaSeries.Values.Add(521, New Date(2004, 1, 1))
MyareaSeries.Values.Add(969, New Date(2004, 1, 2))
MyareaSeries.Values.Add(452, New Date(2004, 1, 3))
MyareaSeries.Values.Add(347, New Date(2004, 1, 4))

IndexedStackedAreaSeriesElement : This is a collection of IndexedStackedArea values.

The below code shows how to create and add values to an IndexedStackedAreaSeriesElement.

IndexedStackedAreaSeriesElement areaSeries = new IndexedStackedAreaSeriesElement("Website A");
areaSeries.Values.Add(521, 0);
areaSeries.Values.Add(969, 1);
areaSeries.Values.Add(452, 2);
areaSeries.Values.Add(347, 3);
Dim MyAreaSeries As IndexedStackedAreaSeriesElement = New IndexedStackedAreaSeriesElement("Website A")
MyAreaSeries.Values.Add(521, 0)
MyAreaSeries.Values.Add(969, 1)
MyAreaSeries.Values.Add(452, 2)
MyAreaSeries.Values.Add(347, 3)

Stacked Line Series Elements​

A StackedLineSeries has two types of elements:

DateTimeStackedLineSeriesElement : This is a collection of DateTimeStackedLine values. It uses the .NET Framework's DateTime structure for setting the date portion of the values in the series.

The below code shows how to create and add values to a DateTimeStackedLineSeriesElement.

DateTimeStackedLineSeriesElement lineSeries = new DateTimeStackedLineSeriesElement("Website A");
lineSeries.Values.Add(521, new DateTime(2004, 1, 1));
lineSeries.Values.Add(969, new DateTime(2004, 1, 2));
lineSeries.Values.Add(452, new DateTime(2004, 1, 3));
lineSeries.Values.Add(347, new DateTime(2004, 1, 4));
Dim MyLineSeries As DateTimeStackedLineSeriesElement = New DateTimeStackedLineSeriesElement("Website A")
MyLineSeries.Values.Add(521, New Date(2004, 1, 1))
MyLineSeries.Values.Add(969, New Date(2004, 1, 2))
MyLineSeries.Values.Add(452, New Date(2004, 1, 3))
MyLineSeries.Values.Add(347, New Date(2004, 1, 4))

IndexedStackedLineSeriesElement : This is a collection of IndexedStackedLine values.

The below code shows how to create and add values to an IndexedStackedLineSeriesElement.

IndexedStackedLineSeriesElement lineSeries = new IndexedStackedLineSeriesElement("Website A");
lineSeries.Values.Add(521, 0);
lineSeries.Values.Add(969, 1);
lineSeries.Values.Add(452, 2);
lineSeries.Values.Add(347, 3);
Dim MyLineSeries As IndexedStackedLineSeriesElement = New IndexedStackedLineSeriesElement("Website A")
MyLineSeries.Values.Add(521, 0)
MyLineSeries.Values.Add(969, 1)
MyLineSeries.Values.Add(452, 2)
MyLineSeries.Values.Add(347, 3)

Stacked Bar Series Elements​

A StackedBarSeries has two types of elements:

DateTimeStackedBarSeriesElement : This is a collection of DateTimeStackedBar values. It uses the .NET Framework's DateTime structure for setting the date portion of the values in the series.

The below code shows how to create and add values to a DateTimeStackedBarSeriesElement.

DateTimeStackedBarSeriesElement barSeries = new DateTimeStackedBarSeriesElement("Website A");
barSeries.Values.Add(521, new DateTime(2004, 1, 1));
barSeries.Values.Add(969, new DateTime(2004, 1, 2));
barSeries.Values.Add(452, new DateTime(2004, 1, 3));
barSeries.Values.Add(347, new DateTime(2004, 1, 4));
Dim MyBarSeries As DateTimeStackedBarSeriesElement = New DateTimeStackedBarSeriesElement("Website A")
MyBarSeries.Values.Add(521, New Date(2004, 1, 1))
MyBarSeries.Values.Add(969, New Date(2004, 1, 2))
MyBarSeries.Values.Add(452, New Date(2004, 1, 3))
MyBarSeries.Values.Add(347, New Date(2004, 1, 4))

IndexedStackedBarSeriesElement : This is a collection of IndexedStackedBar values.

The below code shows how to create and add values to an IndexedStackedBarSeriesElement.

IndexedStackedBarSeriesElement barSeries = new IndexedStackedBarSeriesElement("Website A");
barSeries.Values.Add(521, 0);
barSeries.Values.Add(969, 1);
barSeries.Values.Add(452, 2);
barSeries.Values.Add(347, 3);
Dim MyBarSeries As DateTimeStackedBarSeriesElement = New DateTimeStackedBarSeriesElement("Website A")
MyBarSeries.Values.Add(521, New Date(2004, 1, 1))
MyBarSeries.Values.Add(969, New Date(2004, 1, 2))
MyBarSeries.Values.Add(452, New Date(2004, 1, 3))
MyBarSeries.Values.Add(347, New Date(2004, 1, 4))

Stacked Column Series Elements​

A StackedColumnSeries has two types of elements:

DateTimeStackedColumnSeriesElement : This is a collection of DateTimeStackedColumn values. It uses the .NET Framework's DateTime structure for setting the date portion of the values in the series.

The below code shows how to create and add values to a DateTimeStackedColumnSeriesElement.

DateTimeStackedColumnSeriesElement columnSeries = new DateTimeStackedColumnSeriesElement("Website A");
columnSeries.Values.Add(521, new DateTime(2004, 1, 1));
columnSeries.Values.Add(969, new DateTime(2004, 1, 2));
columnSeries.Values.Add(452, new DateTime(2004, 1, 3));
columnSeries.Values.Add(347, new DateTime(2004, 1, 4));
Dim MyColumnSeries As DateTimeStackedColumnSeriesElement = New DateTimeStackedColumnSeriesElement("Website A")
MyColumnSeries.Values.Add(521, New DateTime(2004, 1, 1))
MyColumnSeries.Values.Add(969, New DateTime(2004, 1, 2))
MyColumnSeries.Values.Add(452, New DateTime(2004, 1, 3))
MyColumnSeries.Values.Add(347, New DateTime(2004, 1, 4))

IndexedStackedColumnSeriesElement : This is a collection of IndexedStackedColumn values.

The below code shows how to create and add values to an IndexedStackedColumnSeriesElement.

IndexedStackedColumnSeriesElement columnSeries = new IndexedStackedColumnSeriesElement("Website A");
columnSeries.Values.Add(521, 0);
columnSeries.Values.Add(969, 1);
columnSeries.Values.Add(452, 2);
columnSeries.Values.Add(347, 3);
Dim MyColumnSeries As IndexedStackedColumnSeriesElement = New IndexedStackedColumnSeriesElement("Website A")
MyColumnSeries.Values.Add(521, 0)
MyColumnSeries.Values.Add(969, 1)
MyColumnSeries.Values.Add(452, 2)
MyColumnSeries.Values.Add(347, 3)