public class

ChartColumnType

extends ChartType
java.lang.Object
   ↳ com.artfulbits.aiCharts.Base.ChartType
     ↳ com.artfulbits.aiCharts.Types.ChartColumnType
Known Direct Subclasses

Class Overview

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.

Summary

Fields
public static final ChartCustomAttribute<Float> FIXED_WIDTH Value indicating column width.
public static final ChartCustomAttribute<Alignment> MARKER_ALIGN Value indicating how point markers should be aligned.
[Expand]
Inherited Fields
From class com.artfulbits.aiCharts.Base.ChartType
Public Constructors
ChartColumnType()
Sole constructor.
Public Methods
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.
[Expand]
Inherited Methods
From class com.artfulbits.aiCharts.Base.ChartType
From class java.lang.Object

Fields

public static final ChartCustomAttribute<Float> FIXED_WIDTH

Value indicating column width.

public static final ChartCustomAttribute<Alignment> MARKER_ALIGN

Value indicating how point markers should be aligned.

Public Constructors

public ChartColumnType ()

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

Public Methods

public void draw (ChartRenderArgs args)

Draws this chart type on surface specified along.

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

public boolean isOriginDependent ()

Indicates whether this type depends on axis origin value.

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

public boolean isSideBySide ()

Indicated whether this chart type is placed side by side.

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