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

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

Declaration: public class ChartColumnType extends com.artfulbits.aiCharts.Base.ChartType
Direct Subclasses: ChartBarType

 

Represents Column chart type. This chart type compares values across categories. The series values are displayed as individual columns, grouped by category. The height of each column is determined by the series value.
 // Creating series.
 ChartSeries series = new ChartSeries("Series 1", ChartTypes.Column);
 // Filling series with 10 data points.
 for(int i = 0; i < 10; i++)
 {
 	series.getPoints().addXY(i, Math.cos(i));
 }
 
* Similar output should be expected:

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

 

Since: 1.0

 

 

Fields Summary
static ChartCustomAttribute<Alignment> MARKER_ALIGN
    
Value indicating how point markers should be aligned.

 

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

 

 

Constructors Summary
ChartColumnType()
    
Sole constructor.

 

 

Methods Summary
void draw(ChartRenderArgs args)
    
Draws this chart type on surface specified along.
android.graphics.PointF getMarkerPoint(ChartRenderArgs args, ChartPoint point, int index)
    
java.lang.String getName()
    
Provides human-readable representation of this chart type.
boolean isOriginDependent()
    
Indicates whether this type depends on axis origin value.
boolean isSideBySide()
    
Indicated whether this chart type is placed side by side.

 

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

 

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

 

 

 

 

MARKER_ALIGN

 

public static final ChartCustomAttribute<Alignment> MARKER_ALIGN

 

Value indicating how point markers should be aligned.

 

Since: 1.0

 

 

 

 

ChartColumnType

 

public ChartColumnType( )

 

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

 

Since: 1.0

 

 

 

 

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

 

 

 

isSideBySide

 

public boolean isSideBySide( )

 

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

 

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

 

Overrides: ChartType.isSideBySide()

 

 

 

getMarkerPoint

 

public android.graphics.PointF getMarkerPoint( ChartRenderArgs args,
ChartPoint point,
int index)

 

 

 

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.