public class

ChartStackedAreaType

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

Class Overview

Represents Stacked Area chart type. Stacked area is an area chart with Y values stacked over one another, in series order.

 // Creating series.
 ChartSeries series1 = new ChartSeries("Series 1", ChartTypes.StackedArea);
 ChartSeries series2 = new ChartSeries("Series 2", ChartTypes.StackedArea);
 // 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 area type uses YValue type to determine index of corresponding Y value among chart point's Y values.

Summary

Fields
public static final ChartCustomAttribute<String> STACK_GROUP Identifies stack group attribute.
[Expand]
Inherited Fields
From class com.artfulbits.aiCharts.Base.ChartType
Public Constructors
ChartStackedAreaType()
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 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<String> STACK_GROUP

Identifies stack group attribute.

Public Constructors

public ChartStackedAreaType ()

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