Summ:  Constr. Methods    Details:  Constr. Methods      Class:  Prev Next
com.artfulbits.aiCharts.Types
Class ChartStackedArea100Type

java.lang.Object com.artfulbits.aiCharts.Base.ChartType com.artfulbits.aiCharts.Types.ChartStackedAreaType com.artfulbits.aiCharts.Types.ChartStackedArea100Type

Declaration: public class ChartStackedArea100Type extends ChartStackedAreaType

 

Represents 100% Stacked Area chart type. This chart type displays multiple series as stacked areas, and the cumulative proportion of each stacked element always totals 100%. The entire chart will always be filled, since the value being measured must be 100% (a combination of several sets of data).
 // Creating series.
 ChartSeries series1 = new ChartSeries("Series 1", ChartTypes.StackedArea100);
 ChartSeries series2 = new ChartSeries("Series 2", ChartTypes.StackedArea100);
 // Filling series with 10 data points.
 for(int i = 0; i < 10; i++)
 {
 	series1.getPoints().addXY(i, Math.cos(i) + 1);
 	series2.getPoints().addXY(i, Math.cos(i) + 2);
 }
 
100% stacked area type uses USAGE_Y type to determine index of corresponding Y value among chart point's Y values.

 

Since: 1.0

 

 

Constructors Summary
ChartStackedArea100Type()
    

 

 

Methods Summary
boolean isStacked100()
    
Indicated whether this type is stacked to percentage relationship.

 

Methods inherited from class: com.artfulbits.aiCharts.Types.ChartStackedAreaType
draw, isOriginDependent, isStacked

 

Methods inherited from class: com.artfulbits.aiCharts.Base.ChartType
colorPerPoint, computeXRange, computeYRange, drawIcon, drawMarkers, getRequiredCoordinateSystem, getXRange, getYRange, isCompatible, isCompatible, isRotated, isSideBySide

 

Methods inherited from class: java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

 

 

 

ChartStackedArea100Type

 

public ChartStackedArea100Type( )

 

 

 

 

isStacked100

 

public boolean isStacked100( )

 

[ description from ChartType.isStacked100() ]
 
Indicated whether this type is stacked to percentage relationship. Series are stacked on top of each other, adding up to 100%. Each series' segment represents the percentage that the value contributes to the sum of the values for that category.

 

Returns:
true is this chart type is 100% stacked, otherwise false.

 

Overrides: ChartType.isStacked100()

 

 

© 2005 - 2010 ArtfulBits. All rights reserved.