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

java.lang.Object com.artfulbits.aiCharts.Base.ChartType com.artfulbits.aiCharts.Types.ChartStackedColumnType com.artfulbits.aiCharts.Types.ChartStackedColumn100Type

Declaration: public class ChartStackedColumn100Type extends ChartStackedColumnType

 

Represents 100% Stacked Column chart type. This chart type displays multiple series of data as stacked columns, and the cumulative proportion of each stacked element always totals 100%. The 100% stacked column chart is useful for measuring multiple series as a proportion versus time.
 // Creating series.
 ChartSeries series1 = new ChartSeries("Series 1", ChartTypes.StackedColumn100);
 ChartSeries series2 = new ChartSeries("Series 2", ChartTypes.StackedColumn100);
 // 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);
 }
 
* Similar output should be expected:

100% stacked column type uses YValue type to determine index of corresponding Y value among chart point's Y values.

 

Since: 1.0

 

 

Fields Summary

 

Fields inherited from class: com.artfulbits.aiCharts.Types.ChartStackedColumnType
STACK_GROUP

 

Fields inherited from class: com.artfulbits.aiCharts.Base.ChartType
POINT_WIDTH

 

 

Constructors Summary
ChartStackedColumn100Type()
    
Sole constructor.

 

 

Methods Summary
java.lang.String getName()
    
Provides human-readable representation of this chart type.
DoubleRange getYRange(ChartSeries series)
    
Gets range that this chart type will consume having specified series.
boolean isStacked100()
    
Indicated whether this type is stacked to percentage relationship.

 

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

 

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

 

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

 

 

 

 

ChartStackedColumn100Type

 

public ChartStackedColumn100Type( )

 

Sole constructor. (For invocation by subclass constructors, typically implicit.)

 

 

 

 

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()

 

 

 

getName

 

public java.lang.String getName( )

 

[ description from ChartType.getName() ]
 
Provides human-readable representation of this chart type.

 

Returns:
instance of

 

Overrides: ChartStackedColumnType.getName()

 

 

 

getYRange

 

public DoubleRange getYRange( ChartSeries series)

 

[ description from ChartType.getYRange(ChartSeries) ]
 
Gets range that this chart type will consume having specified series.

 

Parameters:
series-
instance of ChartSeries class.
Returns:
instance of

 

Overrides: ChartType.getYRange(ChartSeries)

 

 

© 2005 - 2010 ArtfulBits. All rights reserved.