100% Stacked Series Elements

100% Stacked Series Element (Stacked100PercentSeriesElement) is a collection of values added to a 100% stacked series (Stacked100PercentSeries) plotted as a 100% stacked chart. There are four types of 100% Stacked Series Elements, each corresponding to different stacked charts.

Element Series
Stacked Area
DateTime100PercentStackedAreaSeriesElement DateTime100PercentStackedAreaSeries
Indexed100PercentStackedAreaSeriesElement Indexed100PercentStackedAreaSeries
Stacked Bar
DateTime100PercentStackedBarSeriesElement DateTime100PercentStackedBarSeries
Indexed100PercentStackedBarSeriesElements Indexed100PercentStackedBarSeries
Stacked Column
DateTime100PercentStackedColumnSeriesElement DateTime100PercentStackedColumnSeries
Indexed100PercentStackedColumnSeriesElement Indexed100PercentStackedColumnSeries
Stacked Line
DateTime100PercentStackedLineSeriesElement DateTime100PercentStackedLineSeries
Index100PercentStackedLineSeriesElement Indexed100PercentStackedLineSeries

The following examples illustrate creating and adding values to each 100% stacked element type. For a complete example illustrating adding elements to each series, refer to the API documentation for each 100% stacked element type.

100% Stacked Area Series Elements

A Stacked100PercentAreaSeries is the parent class to DateTime100PercentStackedAreaSeries and Indexed100PercentStackedAreaSeries. Add DateTime100PercentStackedAreaSeriesElement values to a DateTime100PercentStackedAreaSeries and Index100PercentStackedAreaSeriesElement values to a Index100PercentStackedAreaSeries.

DateTime100PercentStackedAreaSeriesElement

The DateTime100PercentStackedAreaSeriesElement is a collection of values added to a DateTime100PercentStackedAreaSeries. This element uses the .NET Framework's DateTime structure to set the date portion of the values in the series.

The following code illustrates creating and adding values to this element.

//create date time 100% stacked area series element and add values
DateTime100PercentStackedAreaSeriesElement areaSeries = new DateTime100PercentStackedAreaSeriesElement("Website A");
areaSeriesElement.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 DateTime100PercentStackedAreaSeriesElement = New DateTime100PercentStackedAreaSeriesElement("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))  

For a complete example using this element in series, refer to the API documentation for DateTime100PercentStackedAreaSeriesElement.

Indexed100PercentStackedAreaSeriesElement

The Indexed100PercentStackedAreaSeriesElement is a collection of values used by a Indexed100PercentStackedAreaSeries.

The following code illustrates creating and adding values to this element.

Indexed100PercentStackedAreaSeriesElement areaSeries = new Indexed100PercentStackedAreaSeriesElement("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 Indexed100PercentStackedAreaSeriesElement = New Indexed100PercentStackedAreaSeriesElement("Website A")
MyAreaSeries.Values.Add(521, 0)
MyAreaSeries.Values.Add(969, 1)
MyAreaSeries.Values.Add(452, 2)
MyAreaSeries.Values.Add(347, 3)   

For a complete example using this element in series, refer to the API documentation for Indexed100PercentStackedAreaSeriesElement .

100% Stacked Line Series Elements

A Stacked100PercentLineSeries is the parent class to DateTime100PercentStackedLineSeries and Indexed100PercentStackedLineSeries. Add DateTime100PercentStackedLineSeriesElement values to a DateTime100PercentStackedLineSeries and Index100PercentStackedLineSeriesElement values to a Index100PercentStackedLineSeries.

DateTime100PercentStackedLineSeriesElement

The DateTime100PercentStackedLineSeriesElement is a collection of values used by the DateTime100PercentStackedLineSeries. It uses the .NET Framework's DateTime structure for setting the date portion of the values in the series.

The following code illustrates creating and adding values to this element.

DateTime100PercentStackedLineSeriesElement lineSeries = new DateTime100PercentStackedLineSeriesElement("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 DateTime100PercentStackedLineSeriesElement = New DateTime100PercentStackedLineSeriesElement("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))              

For a complete example using this element in series, refer to the API documentation for DateTime100PercentStackedLineSeriesElement.

Indexed100PercentStackedLineSeriesElement

The Indexed100PercentStackedLineSeriesElement is a collection of values used by a Indexed100PercentStackedLineSeries.

The following code illustrates creating and adding values to this element.

Indexed100PercentStackedLineSeriesElement lineSeries = new Indexed100PercentStackedLineSeriesElement("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 Indexed100PercentStackedLineSeriesElement = New Indexed100PercentStackedLineSeriesElement("Website A")
MyLineSeries.Values.Add(521, 0)
MyLineSeries.Values.Add(969, 1)
MyLineSeries.Values.Add(452, 2)
MyLineSeries.Values.Add(347, 3)  

For a complete example using this element in series, refer to the API documentation for Indexed100PercentStackedLineSeriesElement.

100% Stacked Bar Series Elements

A Stacked100PercentBarSeries is the parent class to DateTime100PercentStackedBarSeries and Indexed100PercentStackedBarSeries. Add DateTime100PercentStackedBarSeriesElement values to a DateTime100PercentStackedBarSeries and Index100PercentStackedBarSeriesElement values to a Index100PercentStackedBarSeries.

DateTime100PercentStackedBarSeriesElement

The DateTime100PercentStackedBarSeriesElement is a collection of values used by the DateTime100PercentStackedBarSeries. It uses the .NET Framework's DateTime structure for setting the date portion of the values in the series.

The following code illustrates creating and adding values to this element.

DateTime100PercentStackedBarSeriesElement barSeries = new DateTime100PercentStackedBarSeriesElement("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 DateTime100PercentStackedBarSeriesElement = New DateTime100PercentStackedBarSeriesElement("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))  

For a complete example using this element in series, refer to the API documentation for DateTime100PercentStackedBarSeriesElement.

Indexed100PercentStackedBarSeriesElement

The Indexed100PercentStackedBarSeriesElements is a collection of values used by the Indexed100PercentStackedBarSeries.

The following code illustrates creating and adding values to this element.

Indexed100PercentStackedBarSeriesElement barSeries = new Indexed100PercentStackedBarSeriesElement("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 Indexed100PercentStackedBarSeriesElement = New Indexed100PercentStackedBarSeriesElement("Website A")
MyBarSeries.Values.Add(521, 0)
MyBarSeries.Values.Add(969, 1)
MyBarSeries.Values.Add(452, 2)
MyBarSeries.Values.Add(347, 3)      

For a complete example using this element in series, refer to the API documentation for Indexed100PercentStackedBarSeriesElements.

100% Stacked Column Series Elements

A Stacked100PercentColumnSeries is the parent class to DateTime100PercentStackedColumnSeries and Indexed100PercentStackedColumnSeries. Add DateTime100PercentStackedColumnSeriesElement values to a DateTime100PercentStackedColumnSeries and Index100PercentStackedColumnSeriesElement values to a Index100PercentStackedColumnSeries.

DateTime100PercentStackedColumnSeriesElement

The DateTime100PercentStackedColumnSeriesElement is a collection of values used by the DateTime100PercentStackedColumnSeries. It uses the .NET Framework's DateTime structure for setting the date portion of the values in the series.

The following code illustrates creating and adding values to this element.

DateTime100PercentStackedColumnSeriesElement columnSeries = new DateTime100PercentStackedColumnSeriesElement("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 DateTime100PercentStackedColumnSeriesElement = New DateTime100PercentStackedColumnSeriesElement("Website A")
MyColumnSeries.Values.Add(521, New Date(2004, 1, 1))
MyColumnSeries.Values.Add(969, New Date(2004, 1, 2))
MyColumnSeries.Values.Add(452, New Date(2004, 1, 3))
MyColumnSeries.Values.Add(347, New Date(2004, 1, 4))   

For a complete example using this element in series, refer to the API documentation for DateTime100PercentStackedColumnSeriesElement.

Indexed100PercentStackedColumnSeriesElement

The Indexed100PercentStackedColumnSeriesElement is a collection of values used by the Indexed100PercentStackedColumnSeries.

The following code shows how to create and add values to the series.

Indexed100PercentStackedColumnSeriesElement columnSeries = new Indexed100PercentStackedColumnSeriesElement("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 Indexed100PercentStackedColumnSeriesElement = New Indexed100PercentStackedColumnSeriesElement("Website A")
MyColumnSeries.Values.Add(521, 0)
MyColumnSeries.Values.Add(969, 1)
MyColumnSeries.Values.Add(452, 2)
MyColumnSeries.Values.Add(347, 3)

For a complete example using this element in series, refer to the API documentation for Indexed100PercentStackedColumnSeriesElement.

In this topic