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

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

Declaration: public class ChartStackedAreaType extends com.artfulbits.aiCharts.Base.ChartType
Direct Subclasses: ChartStackedArea100Type

 

Represents Stacked Area chart type. Stacked area is an area chart with Y values stacked over one another, in series order.
 // Creating series.
 ChartSeries series1 = new ChartSeries("Series 1", ChartTypes.StackedArea);
 ChartSeries series2 = new ChartSeries("Series 2", ChartTypes.StackedArea);
 // Filling series with 10 data points.
 for(int i = 0; i < 10; i++)
 {
 	series1.getPoints().addXY(i, Math.cos(i));
 	series2.getPoints().addXY(i, Math.sin(i));
 }
 
* Similar output should be expected:

Stacked area type uses YValue type to determine index of corresponding Y value among chart point's Y values.

 

Since: 1.0

 

 

Fields Summary
static ChartCustomAttribute<java.lang.String> STACK_GROUP
    
Identifies stack group attribute.

 

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

 

 

Constructors Summary
ChartStackedAreaType()
    
Sole constructor.

 

 

Methods Summary
void draw(ChartRenderArgs args)
    
Draws this chart type on surface specified along.
java.lang.String getName()
    
Provides human-readable representation of this chart type.
boolean isOriginDependent()
    
Indicates whether this type depends on axis origin value.
boolean isStacked()
    
Indicates whether it type is stacked.

 

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

 

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

 

 

 

 

STACK_GROUP

 

public static final ChartCustomAttribute<java.lang.String> STACK_GROUP

 

Identifies stack group attribute.

 

Since: 1.5

 

 

 

 

ChartStackedAreaType

 

public ChartStackedAreaType( )

 

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

 

 

 

 

isOriginDependent

 

public boolean isOriginDependent( )

 

[ description from ChartType.isOriginDependent() ]
 
Indicates whether this type depends on axis origin value.

 

Returns:
true if chart type consumes value of origin to draw, otherwise false.

 

Overrides: ChartType.isOriginDependent()

 

 

 

isStacked

 

public boolean isStacked( )

 

[ description from ChartType.isStacked() ]
 
Indicates whether it type is stacked. Stacked charts show the relationship of parts to the whole. Stacked charts offer similar complexity to clustered series by adding together component value items within or area.

 

Returns:
true if this type is stacked, otherwise false.

 

Overrides: ChartType.isStacked()

 

 

 

draw

 

public void draw( ChartRenderArgs args)

 

[ description from ChartType.draw(ChartRenderArgs) ]
 
Draws this chart type on surface specified along.

 

Parameters:
args-
instance of ChartRenderArgs that provides facilities to draw this type.

 

Implements: ChartType.draw(ChartRenderArgs)

 

 

 

getName

 

public java.lang.String getName( )

 

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

 

Returns:
instance of

 

Implements: ChartType.getName()

 

 

© 2005 - 2010 ArtfulBits. All rights reserved.