A 100% Stacked Series Element is a collection of values that will be added to a 100% stacked series to be plotted as a 100% stacked chart. There are four different groups of 100% Stacked Series Elements corresponding to the four different types of stacked charts (stacked area, stacked bar, stacked column and stacked line). Each 100% stacked series element group will have both an indexed and a date-time type.
100% Stacked Area Series Elements
100% Stacked Line Series Elements
100% Stacked Bar Series Elements
100% Stacked Column Series Elements
A Stacked100PercentAreaSeries has two types of elements:
- DateTime100PercentStackedAreaSeriesElement
This is a collection of DateTime100PercentStackedArea values. It uses the Calendar class for setting the time portion of the values in the series.
The below code shows how to create and add values to a DateTime100PercentStackedAreaSeriesElement.
[Java] DateTime100PercentStackedAreaSeriesElement areaSeries = new DateTime100PercentStackedAreaSeriesElement("Website A"); Calendar p0=Calendar.getInstance(); p0.set(2004,0,1); Calendar p1=Calendar.getInstance(); p1.set(2004,1,1); Calendar p2=Calendar.getInstance(); p2.set(2004,2,1); Calendar p3=Calendar.getInstance(); p3.set(2004,3,1); areaSeries.getValues().add(521, p0); areaSeries.getValues().add(969, p1); areaSeries.getValues().add(452, p2); areaSeries.getValues().add(347, p3);
- Indexed100PercentStackedAreaSeriesElement
This is a collection of Indexed100PercentStackedArea values.
The below code shows how to create and add values to an Indexed100PercentStackedAreaSeriesElement.
[Java] Indexed100PercentStackedAreaSeriesElement areaSeries = new Indexed100PercentStackedAreaSeriesElement("Website A"); areaSeries.getValues().add(521, 0); areaSeries.getValues().add(969, 1); areaSeries.getValues().add(451, 2); areaSeries.getValues().add(347, 3);
A Stacked100PercentLineSeries has two types of elements:
- DateTime100PercentStackedLineSeriesElement
- This is a collection of DateTime100PercentStackedLine values. It uses the Calendar class for setting the time portion of the values in the series.
The below code shows how to create and add values to a DateTime100PercentStackedLineSeriesElement.
[Java] DateTime100PercentStackedLineSeriesElement lineSeries = new DateTime100PercentStackedLineSeriesElement("Website A"); Calendar p0=Calendar.getInstance(); p0.set(2004,0,1); Calendar p1=Calendar.getInstance(); p1.set(2004,1,1); Calendar p2=Calendar.getInstance(); p2.set(2004,2,1); Calendar p3=Calendar.getInstance(); p3.set(2004,3,1); lineSeries.getValues().add(521, p0); lineSeries.getValues().add(969, p1); lineSeries.getValues().add(452, p2); lineSeries.getValues().add(347, p3);
- Indexed100PercentStackedLineSeriesElement
This is a collection of Indexed100PercentStackedLine values.
The below code shows how to create and add values to an Indexed100PercentStackedLineSeriesElement.
[Java] Indexed100PercentStackedLineSeriesElement lineSeries = new Indexed100PercentStackedLineSeriesElement("Website A"); lineSeries.getValues().add(521, 0); lineSeries.getValues().add(969, 1); lineSeries.getValues().add(451, 2); lineSeries.getValues().add(347, 3);
A Stacked100PercentBarSeries has two types of elements:
- DateTime100PercentStackedBarSeriesElement
- This is a collection of DateTime100PercentStackedBar values. It uses the Calendar class for setting the time portion of the values in the series.
The below code shows how to create and add values to a DateTime100PercentStackedBarSeriesElement.
[Java] DateTime100PercentStackedBarSeriesElement barSeries = new DateTime100PercentStackedBarSeriesElement("Website A"); Calendar p0=Calendar.getInstance(); p0.set(2004,0,1); Calendar p1=Calendar.getInstance(); p1.set(2004,1,1); Calendar p2=Calendar.getInstance(); p2.set(2004,2,1); Calendar p3=Calendar.getInstance(); p3.set(2004,3,1); barSeries.getValues().add(521, p0); barSeries.getValues().add(969, p1); barSeries.getValues().add(452, p2); barSeries.getValues().add(347, p3);
- Indexed100PercentStackedBarSeriesElement
This is a collection of Indexed100PercentStackedBar values.
The below code shows how to create and add values to an Indexed100PercentStackedBarSeriesElement.
[Java] Indexed100PercentStackedBarSeriesElement barSeries = new Indexed100PercentStackedBarSeriesElement("Website A"); barSeries.getValues().add(521, 0); barSeries.getValues().add(969, 1); barSeries.getValues().add(451, 2); barSeries.getValues().add(347, 3);
A Stacked100PercentColumnSeries has two types of elements:
- DateTime100PercentStackedColumnSeriesElement
- This is a collection of DateTime100PercentStackedColumn values. It uses the Calendar class for setting the time portion of the values in the series.
The below code shows how to create and add values to a DateTime100PercentStackedColumnSeriesElement.
[Java] DateTime100PercentStackedColumnSeriesElement columnSeries = new DateTime100PercentStackedColumnSeriesElement("Website A"); Calendar p0=Calendar.getInstance(); p0.set(2004,0,1); Calendar p1=Calendar.getInstance(); p1.set(2004,1,1); Calendar p2=Calendar.getInstance(); p2.set(2004,2,1); Calendar p3=Calendar.getInstance(); p3.set(2004,3,1); columnSeries.getValues().add(521, p0); columnSeries.getValues().add(969, p1); columnSeries.getValues().add(452, p2); columnSeries.getValues().add(347, p3);
- Indexed100PercentStackedColumnSeriesElement
This is a collection of Indexed100PercentStackedColumn values.
The below code shows how to create and add values to an Indexed100PercentStackedColumnSeriesElement.
[Java] Indexed100PercentStackedColumnSeriesElement columnSeries = new Indexed100PercentStackedColumnSeriesElement("Website A"); columnSeries.getValues().add(521, 0); columnSeries.getValues().add(969, 1); columnSeries.getValues().add(451, 2); columnSeries.getValues().add(347, 3);