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

java.lang.Object com.artfulbits.aiCharts.Base.ChartType com.artfulbits.aiCharts.Types.ChartColumnType com.artfulbits.aiCharts.Types.ChartBarType

Declaration: public class ChartBarType extends ChartColumnType

 

Represents Bar chart type. A bar chart, also known as a bar graph, is a chart with rectangular bars of lengths proportional to that value that they represent. Bar charts are used for comparing two or more values.
 // Creating series.
 ChartSeries series = new ChartSeries("Series 1", ChartTypes.Bar);
 // Filling series with 10 data points.
 for(int i = 0; i < 10; i++)
 {
 	series.getPoints().addXY(i, Math.cos(i));
 }
 
Bar type uses USAGE_Y type to determine index of corresponding Y value among chart point's Y values.

 

Since: 1.0

 

 

Constructors Summary
ChartBarType()
    

 

 

Methods Summary
boolean isRotated()
    
Indicates whether this type requires X and Y axes swapping.

 

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

 

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

 

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

 

 

 

 

ChartBarType

 

public ChartBarType( )

 

 

 

 

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

 

 

© 2005 - 2010 ArtfulBits. All rights reserved.