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

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

Declaration: public class ChartStackedBarType extends ChartStackedColumnType
Direct Subclasses: ChartStackedBar100Type

 

Represents Stacked Bar chart type. A stacked bar chart displays multiple series stacked on top of one another horizontally.Using a stacked bar 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 bar.
 // Creating series.
 ChartSeries series1 = new ChartSeries("Series 1", ChartTypes.StackedBar);
 ChartSeries series2 = new ChartSeries("Series 2", ChartTypes.StackedBar);
 // 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 bar 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
ChartStackedBarType()
    
Sole constructor.

 

 

Methods Summary
java.lang.String getName()
    
Provides human-readable representation of this chart type.
boolean isRotated()
    
Indicates whether this type requires X and Y axes swapping.

 

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, getYRange, isCompatible, isCompatible, isStacked100

 

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

 

 

 

 

ChartStackedBarType

 

public ChartStackedBarType( )

 

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

 

 

 

 

isRotated

 

public boolean isRotated( )

 

[ description from ChartType.isRotated() ]
 
Indicates whether this type requires X and Y axes swapping.

 

Returns:
true if this chart type is rotated, otherwise false.

 

Overrides: ChartType.isRotated()

 

 

 

getName

 

public java.lang.String getName( )

 

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

 

Returns:
instance of

 

Overrides: ChartStackedColumnType.getName()

 

 

© 2005 - 2010 ArtfulBits. All rights reserved.