public class

ChartStackedColumnType

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

Class Overview

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));
 }
 
* Similar output should be expected:

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

Summary

Fields
public static final ChartCustomAttribute<Alignment> MARKER_ALIGN Value indicating how point markers should be aligned.
public static final ChartCustomAttribute<String> STACK_GROUP Identifies STACK_GROUP attribute value.
[Expand]
Inherited Fields
From class com.artfulbits.aiCharts.Base.ChartType
Public Constructors
ChartStackedColumnType()
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.
boolean isStacked()
Indicates whether it type is stacked.
[Expand]
Inherited Methods
From class com.artfulbits.aiCharts.Base.ChartType
From class java.lang.Object

Fields

public static final ChartCustomAttribute<Alignment> MARKER_ALIGN

Value indicating how point markers should be aligned.

public static final ChartCustomAttribute<String> STACK_GROUP

Identifies STACK_GROUP attribute value.

Public Constructors

public ChartStackedColumnType ()

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.

public boolean 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.

Returns
  • true if this type is stacked, otherwise false.