Summ:  Constr. Methods    Details:  Constr. Methods      Class:  Prev Next
Class ChartStackedColumnType

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

Declaration: public class ChartStackedColumnType extends com.artfulbits.aiCharts.Base.ChartType
Direct Subclasses: ChartStackedBarType, ChartStackedColumn100Type


Represents Stacked Column chart type. A stacked column chart displays multiple series stacked on top of one another vertically. Using a stacked column chart is an effective way to present the absolute values of data points represented by the segments of each bar, as well as the total value represented by data points from each series stacked in a column.
 // Creating series.
 ChartSeries series1 = new ChartSeries("Series 1", ChartTypes.StackedColumn);
 ChartSeries series2 = new ChartSeries("Series 2", ChartTypes.StackedColumn);
 // 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.cos(i));
Stacked column type uses USAGE_Y type to determine index of corresponding Y value among chart point's Y values.


Since: 1.0



Constructors Summary



Methods Summary
void draw(ChartRenderArgs args)
Draws this chart type on surface specified along.
boolean isOriginDependent()
Indicates whether this type depends on axis origin value.
boolean isSideBySide()
Indicated whether this chart type is placed side by side.
boolean isStacked()
Indicates whether it type is stacked.


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


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







public ChartStackedColumnType( )







public boolean isSideBySide( )


[ description from ChartType.isSideBySide() ]
Indicated whether this chart type is placed side by side. Typical side-by-side chart type is ChartColumnType.


true if chart type is side by side, otherwise false.


Overrides: ChartType.isSideBySide()






public boolean isOriginDependent( )


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


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


Overrides: ChartType.isOriginDependent()






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.


true if this type is stacked, otherwise false.


Overrides: ChartType.isStacked()






public void draw( ChartRenderArgs args)


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


instance of ChartRenderArgs that provides facilities to draw this type.


Implements: ChartType.draw(ChartRenderArgs)



© 2005 - 2010 ArtfulBits. All rights reserved.