100% Stacked Series
A Stacked100PercentSeries is a collection of values displayed as a graph. When multiple 100% Stacked Series are added to the same PlotArea, values for a particular index (on any indexed stacked series) - or a specific point in time (on any date-time stacked series) - are stacked as a percentage of the total for that index or point in time. There are four distinct groups of 100% Stacked Series corresponding to the four different types of stacked charts (100% stacked area, 100% stacked bar, 100% stacked column, and 100% stacked line). Each 100% stacked series group will have an indexed and date-time type.
100% Stacked Pie, and Scatter charts do not exist.
100% Stacked Area Series
An area chart has two types of 100% stacked series: DateTime100PercentStackedAreaSeries and Indexed100PercentStackedAreaSeries.
DateTime100PercentStackedAreaSeries
The DateTime100PercentStackedAreaSeries is a collection of DateTime100PercentStackedAreaSeriesElement instances, each corresponding to a particular point in time that will be plotted as a Stacked Area chart. It uses the .NET Framework's DateTime structure for setting the date portion of the values in the series. A DateTime100PercentStackedAreaSeries uses DateTimeXAxis as the x-axis and PercentageYAxis as the y-axis.
The following code shows how to create and add elements to a DateTime100PercentStackedAreaSeries.
DateTime100PercentStackedAreaSeries stackedAreaSeries = new DateTime100PercentStackedAreaSeries();
DateTime100PercentStackedAreaSeriesElement areaSeriesElement1 = new DateTime100PercentStackedAreaSeriesElement("Website A");
areaSeriesElement1.Values.Add(51, new DateTime(2004, 1, 1));
areaSeriesElement1.Values.Add(99, new DateTime(2004, 1, 2));
areaSeriesElement1.Values.Add(42, new DateTime(2004, 1, 3));
DateTime100PercentStackedAreaSeriesElement areaSeriesElement2 = new DateTime100PercentStackedAreaSeriesElement("Website B");
areaSeriesElement2.Values.Add(11, new DateTime(2004, 1, 1));
areaSeriesElement2.Values.Add(30, new DateTime(2004, 1, 2));
areaSeriesElement2.Values.Add(22, new DateTime(2004, 1, 3));
stackedAreaSeries.Add(areaSeriesElement1);
stackedAreaSeries.Add(areaSeriesElement2);
Dim MyStackedAreaSeries As DateTime100PercentStackedAreaSeries = New DateTime100PercentStackedAreaSeries()
Dim MyAreaSeriesElement1 As DateTime100PercentStackedAreaSeriesElement = New DateTime100PercentStackedAreaSeriesElement("Website A")
MyAreaSeriesElement1.Values.Add(51, New Date(2004, 1, 1))
MyAreaSeriesElement1.Values.Add(99, New Date(2004, 1, 2))
MyAreaSeriesElement1.Values.Add(42, New Date(2004, 1, 3))
Dim MyAreaSeriesElement2 As DateTime100PercentStackedAreaSeriesElement = New DateTime100PercentStackedAreaSeriesElement("Website B")
MyAreaSeriesElement2.Values.Add(11, New Date(2004, 1, 1))
MyAreaSeriesElement2.Values.Add(30, New Date(2004, 1, 2))
MyAreaSeriesElement2.Values.Add(22, New Date(2004, 1, 3))
MyStackedAreaSeries.Add(MyAreaSeriesElement1)
MyStackedAreaSeries.Add(MyAreaSeriesElement2)
For a complete example using this series, refer to the API documentation for DateTime100PercentStackedAreaSeries.
Indexed100PercentStackedAreaSeries
An Indexed100PercentStackedAreaSeries is a collection of Indexed100PercentStackedAreaSeriesElement that will be plotted as a StackedAreaSeries in an indexed order. An IndexedStackedAreaSeries uses an IndexedXAxis as the x-axis and a PercentageYAxis as the y-axis.
The following code shows how to create and add elements to an Indexed100PercentStackedAreaSeries.
Indexed100PercentStackedAreaSeries areaSeries = new Indexed100PercentStackedAreaSeries();
Indexed100PercentStackedAreaSeriesElement seriesElement1 = new Indexed100PercentStackedAreaSeriesElement("Website A");
seriesElement1.Values.Add(new float[] { 5, 7, 9, 6 });
Indexed100PercentStackedAreaSeriesElement seriesElement2 = new Indexed100PercentStackedAreaSeriesElement("Website B");
seriesElement2.Values.Add(new float[] { 4, 2, 5, 8 });
areaSeries.Add(seriesElement1);
areaSeries.Add(seriesElement2);
Dim MyAreaSeries As Indexed100PercentStackedAreaSeries = New Indexed100PercentStackedAreaSeries()
Dim MySeriesElement1 As Indexed100PercentStackedAreaSeriesElement = New Indexed100PercentStackedAreaSeriesElement("Website A")
MySeriesElement1.Values.Add(New Single() {5, 7, 9, 6})
Dim MySeriesElement2 As Indexed100PercentStackedAreaSeriesElement = New Indexed100PercentStackedAreaSeriesElement("Website B")
MySeriesElement2.Values.Add(New Single() {5, 7, 9, 6})
MyAreaSeries.Add(MySeriesElement1)
MyAreaSeries.Add(MySeriesElement2)
For a complete example using this series, refer to the API documentation for Indexed100PercentStackedAreaSeries.
100% Stacked Bar Series
A Bar chart has two types of 100% stacked series, DateTime100PercentStackedBarSeries and Indexed100PercentStackedBarSeries.
DateTime100PercentStackedBarSeries
The DateTime100PercentStackedBarSeries is a collection of DateTime100PercentStackedBarSeriesElement, each corresponding to a particular point in time that will be plotted as a Stacked Bar chart. It uses the .NET Framework's DateTime structure for setting the date portion of the values in the series. A DateTime100PercentStackedBarSeries uses PercentageXAxis as x-axis and DateTimeYAxis as the y-axis.
The following code shows how to create and add elements to a DateTime100PercentStackedBarSeries.
DateTime100PercentStackedBarSeries stackedBarSeries = new DateTime100PercentStackedBarSeries();
DateTime100PercentStackedBarSeriesElement barSeriesElement1 = new DateTime100PercentStackedBarSeriesElement("Website A");
barSeriesElement1.Values.Add(51, new DateTime(2004, 1, 1));
barSeriesElement1.Values.Add(99, new DateTime(2004, 1, 2));
barSeriesElement1.Values.Add(42, new DateTime(2004, 1, 3));
DateTime100PercentStackedBarSeriesElement barSeriesElement2 = new DateTime100PercentStackedBarSeriesElement("Website B");
barSeriesElement2.Values.Add(11, new DateTime(2004, 1, 1));
barSeriesElement2.Values.Add(30, new DateTime(2004, 1, 2));
barSeriesElement2.Values.Add(22, new DateTime(2004, 1, 3));
stackedBarSeries.Add(barSeriesElement1);
stackedBarSeries.Add(barSeriesElement2);
Dim MyStackedBarSeries As DateTime100PercentStackedBarSeries = New DateTime100PercentStackedBarSeries()
Dim MyBarSeriesElement1 As DateTime100PercentStackedBarSeriesElement = New DateTime100PercentStackedBarSeriesElement("Website A")
MyBarSeriesElement1.Values.Add(51, New Date(2004, 1, 1))
MyBarSeriesElement1.Values.Add(99, New Date(2004, 1, 2))
MyBarSeriesElement1.Values.Add(42, New Date(2004, 1, 3))
Dim MyBarSeriesElement2 As DateTime100PercentStackedBarSeriesElement = New DateTime100PercentStackedBarSeriesElement("Website B")
MyBarSeriesElement2.Values.Add(11, New Date(2004, 1, 1))
MyBarSeriesElement2.Values.Add(30, New Date(2004, 1, 2))
MyBarSeriesElement2.Values.Add(22, New Date(2004, 1, 3))
MyStackedBarSeries.Add(MyBarSeriesElement1)
MyStackedBarSeries.Add(MyBarSeriesElement2)
For a complete example using this series, refer to the API documentation for DateTime100PercentStackedBarSeries.
Indexed100PercentStackedBarSeries
The Indexed100PercentStackedBarSeries is a collection of Indexed100PercentStackedBarSeriesElement that will be plotted as a StackedBarSeries in an indexed order. An IndexedStackedBarSeries uses a PercentageXAxis as the x-axis and an IndexedYAxis as the y-axis.
The following code shows how to create and add elements to an Indexed100PercentStackedBarSeries.
Indexed100PercentStackedBarSeries barSeries = new Indexed100PercentStackedBarSeries();
Indexed100PercentStackedBarSeriesElement seriesElement1 = new Indexed100PercentStackedBarSeriesElement("Website A");
seriesElement1.Values.Add(new float[] { 5, 7, 9, 6 });
Indexed100PercentStackedBarSeriesElement seriesElement2 = new Indexed100PercentStackedBarSeriesElement("Website B");
seriesElement2.Values.Add(new float[] { 4, 2, 5, 8 });
barSeries.Add(seriesElement1);
barSeries.Add(seriesElement2);
Dim MyBarSeries As Indexed100PercentStackedBarSeries = New Indexed100PercentStackedBarSeries()
Dim MySeriesElement1 As Indexed100PercentStackedBarSeriesElement = New Indexed100PercentStackedBarSeriesElement("Website A")
MySeriesElement1.Values.Add(New Single() {5, 7, 9, 6})
Dim MySeriesElement2 As Indexed100PercentStackedBarSeriesElement = New Indexed100PercentStackedBarSeriesElement("Website B")
MySeriesElement2.Values.Add(New Single() {5, 7, 9, 6})
MyBarSeries.Add(MySeriesElement1)
MyBarSeries.Add(MySeriesElement2)
For a complete example using this series, refer to the API documentation for Indexed100PercentStackedBarSeries.
100% Stacked Column Series
A column chart has two types of 100% stacked series, DateTime100PercentStackedColumnSeries and IndexedStackedColumnSeries.
DateTime100PercentStackedColumnSeries
This series is a collection of DateTime100PercentStackedColumnSeriesElement each corresponding to a particular point in time that will be plotted as a Stacked Column chart. A DateTime100PercentStackedColumnSeries uses DateTimeXAxis as the x-axis and PercentageYAxis as the y-axis. It uses the .NET Framework's DateTime structure for setting the date portion of the values in the series.
The following code shows how to create and add elements to a DateTime100PercentStackedColumnSeries.
DateTime100PercentStackedColumnSeries stackedColumnSeries = new DateTime100PercentStackedColumnSeries();
DateTime100PercentStackedColumnSeriesElement columnSeriesElement1 = new DateTime100PercentStackedColumnSeriesElement("Website A");
columnSeriesElement1.Values.Add(51, new DateTime(2004, 1, 1));
columnSeriesElement1.Values.Add(99, new DateTime(2004, 1, 2));
columnSeriesElement1.Values.Add(42, new DateTime(2004, 1, 3));
DateTime100PercentStackedColumnSeriesElement columnSeriesElement2 = new DateTime100PercentStackedColumnSeriesElement("Website B");
columnSeriesElement2.Values.Add(11, new DateTime(2004, 1, 1));
columnSeriesElement2.Values.Add(30, new DateTime(2004, 1, 2));
columnSeriesElement2.Values.Add(22, new DateTime(2004, 1, 3));
stackedColumnSeries.Add(columnSeriesElement1);
stackedColumnSeries.Add(columnSeriesElement2);
Dim MyStackedColumnSeries As DateTime100PercentStackedColumnSeries = New DateTime100PercentStackedColumnSeries()
Dim MyColumnSeriesElement1 As DateTime100PercentStackedColumnSeriesElement = New DateTime100PercentStackedColumnSeriesElement("Website A")
MyColumnSeriesElement1.Values.Add(51, New Date(2004, 1, 1))
MyColumnSeriesElement1.Values.Add(99, New Date(2004, 1, 2))
MyColumnSeriesElement1.Values.Add(42, New Date(2004, 1, 3))
Dim MyColumnSeriesElement2 As DateTime100PercentStackedColumnSeriesElement = New DateTime100PercentStackedColumnSeriesElement("Website B")
MyColumnSeriesElement2.Values.Add(11, New Date(2004, 1, 1))
MyColumnSeriesElement2.Values.Add(30, New Date(2004, 1, 2))
MyColumnSeriesElement2.Values.Add(22, New Date(2004, 1, 3))
MyStackedColumnSeries.Add(MyColumnSeriesElement1)
MyStackedColumnSeries.Add(MyColumnSeriesElement2)
For a complete example using this series, refer to the API documentation for DateTime100PercentStackedColumnSeries.
Indexed100PercentStackedColumnSeries
This series is a collection of Indexed100PercentStackedColumnSeriesElement that will be plotted as a StackedColumnSeries in an indexed order. An IndexedStackedColumnSeries uses an IndexedXAxis as the x-axis and a PercentageYAxis as the y-axis.
The following code shows how to create and add elements to an Indexed100PercentStackedColumnSeries.
Indexed100PercentStackedColumnSeries columnSeries = new Indexed100PercentStackedColumnSeries();
Indexed100PercentStackedColumnSeriesElement seriesElement1 = new Indexed100PercentStackedColumnSeriesElement("Website A");
seriesElement1.Values.Add(new float[] { 5, 7, 9, 6 });
Indexed100PercentStackedColumnSeriesElement seriesElement2 = new Indexed100PercentStackedColumnSeriesElement("Website B");
seriesElement2.Values.Add(new float[] { 4, 2, 5, 8 });
columnSeries.Add(seriesElement1);
columnSeries.Add(seriesElement2);
Dim MyColumnSeries As Indexed100PercentStackedColumnSeries = New Indexed100PercentStackedColumnSeries()
Dim MySeriesElement1 As Indexed100PercentStackedColumnSeriesElement = New Indexed100PercentStackedColumnSeriesElement("Website A")
MySeriesElement1.Values.Add(New Single() {5, 7, 9, 6})
Dim MySeriesElement2 As Indexed100PercentStackedColumnSeriesElement = New Indexed100PercentStackedColumnSeriesElement("Website B")
MySeriesElement2.Values.Add(New Single() {5, 7, 9, 6})
MyColumnSeries.Add(MySeriesElement1)
MyColumnSeries.Add(MySeriesElement2)
For a complete example using this series, refer to the API documentation for Indexed100PercentStackedColumnSeries.
100% Stacked Line Series
A Line chart has two types of 100% stacked series, DateTime100PercentStackedLineSeries and Indexed100PercentStackedLineSeries.
DateTime100PercentStackedLineSeries
This series is a collection of DateTime100PercentStackedLineSeriesElement each corresponding to a particular point in time that will be plotted as a Stacked Line chart. A DateTime100PercentStackedLineSeries uses DateTimeXAxis as the x-axis and PercentageYAxis as the y-axis. It uses the .NET Framework's DateTime structure for setting the date portion of the values in the series.
The following code shows how to create and add elements to a DateTime100PercentStackedLineSeries.
DateTime100PercentStackedLineSeries stackedLineSeries = new DateTime100PercentStackedLineSeries();
DateTime100PercentStackedLineSeriesElement lineSeriesElement1 = new DateTime100PercentStackedLineSeriesElement("Website A");
lineSeriesElement1.Values.Add(51, new DateTime(2004, 1, 1));
lineSeriesElement1.Values.Add(99, new DateTime(2004, 1, 2));
lineSeriesElement1.Values.Add(42, new DateTime(2004, 1, 3));
DateTime100PercentStackedLineSeriesElement lineSeriesElement2 = new DateTime100PercentStackedLineSeriesElement("Website B");
lineSeriesElement2.Values.Add(11, new DateTime(2004, 1, 1));
lineSeriesElement2.Values.Add(30, new DateTime(2004, 1, 2));
lineSeriesElement2.Values.Add(22, new DateTime(2004, 1, 3));
stackedLineSeries.Add(lineSeriesElement1);
stackedLineSeries.Add(lineSeriesElement2);
Dim MyStackedLineSeries As DateTime100PercentStackedLineSeries = New DateTime100PercentStackedLineSeries()
Dim MyLineSeriesElement1 As DateTime100PercentStackedLineSeriesElement = New DateTime100PercentStackedLineSeriesElement("Website A")
MyLineSeriesElement1.Values.Add(51, New Date(2004, 1, 1))
MyLineSeriesElement1.Values.Add(99, New Date(2004, 1, 2))
MyLineSeriesElement1.Values.Add(42, New Date(2004, 1, 3))
Dim MyLineSeriesElement2 As DateTime100PercentStackedLineSeriesElement = New DateTime100PercentStackedLineSeriesElement("Website B")
MyLineSeriesElement2.Values.Add(11, New Date(2004, 1, 1))
MyLineSeriesElement2.Values.Add(30, New Date(2004, 1, 2))
MyLineSeriesElement2.Values.Add(22, New Date(2004, 1, 3))
MyStackedLineSeries.Add(MyLineSeriesElement1)
MyStackedLineSeries.Add(MyLineSeriesElement2)
For a complete example using this series, refer to the API documentation for DateTime100PercentStackedLineSeries.
Indexed100PercentStackedLineSeries
The Indexed100PercentStackedLineSeries is a collection of Indexed100PercentStackedLineSeriesElement that will be plotted as a StackedLineSeries in an indexed order. An IndexedStackedLineSeries uses an IndexedXAxis as the x-axis and a PercentageYAxis as the y-axis.
The following code shows how to create and add elements to an Indexed100PercentStackedLineSeries.
Indexed100PercentStackedLineSeries lineSeries = new Indexed100PercentStackedLineSeries();
Indexed100PercentStackedLineSeriesElement seriesElement1 = new Indexed100PercentStackedLineSeriesElement("Website A");
seriesElement1.Values.Add(new float[] { 5, 7, 9, 6 });
Indexed100PercentStackedLineSeriesElement seriesElement2 = new Indexed100PercentStackedLineSeriesElement("Website B");
seriesElement2.Values.Add(new float[] { 4, 2, 5, 8 });
lineSeries.Add(seriesElement1);
lineSeries.Add(seriesElement2);
Dim MyLineSeries As Indexed100PercentStackedLineSeries = New Indexed100PercentStackedLineSeries()
Dim MySeriesElement1 As Indexed100PercentStackedLineSeriesElement = New Indexed100PercentStackedLineSeriesElement("Website A")
MySeriesElement1.Values.Add(New Single() {5, 7, 9, 6})
Dim MySeriesElement2 As Indexed100PercentStackedLineSeriesElement = New Indexed100PercentStackedLineSeriesElement("Website B")
MySeriesElement2.Values.Add(New Single() {5, 7, 9, 6})
MyLineSeries.Add(MySeriesElement1)
MyLineSeries.Add(MySeriesElement2)
For a complete example using this series, refer to the API documentation for Indexed100PercentStackedLineSeries.