public class

ChartStackedBar100Type

extends ChartStackedBarType
java.lang.Object
   ↳ com.artfulbits.aiCharts.Base.ChartType
     ↳ com.artfulbits.aiCharts.Types.ChartStackedColumnType
       ↳ com.artfulbits.aiCharts.Types.ChartStackedBarType
         ↳ com.artfulbits.aiCharts.Types.ChartStackedBar100Type

Class Overview

Represents Stacked Bar chart type. A stacked bar chart displays multiple series stacked on top of one another horizontally.Using a stacked bar 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 bar.

 // Creating series.
 ChartSeries series1 = new ChartSeries("Series 1", ChartTypes.StackedBar);
 ChartSeries series2 = new ChartSeries("Series 2", ChartTypes.StackedBar);
 // Filling series with 10 data points.
 for(int i = 0; i < 10; i++)
 {
 	series1.getPoints().addXY(i, Math.abs(Math.cos(i)));
 	series2.getPoints().addXY(i, Math.abs(Math.sin(i)));
 }
 
* Similar output should be expected:

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

Summary

[Expand]
Inherited Fields
From class com.artfulbits.aiCharts.Types.ChartStackedColumnType
From class com.artfulbits.aiCharts.Base.ChartType
Public Constructors
ChartStackedBar100Type()
Sole constructor.
Public Methods
boolean isStacked100()
Indicated whether this type is stacked to percentage relationship.
[Expand]
Inherited Methods
From class com.artfulbits.aiCharts.Types.ChartStackedBarType
From class com.artfulbits.aiCharts.Types.ChartStackedColumnType
From class com.artfulbits.aiCharts.Base.ChartType
From class java.lang.Object

Public Constructors

public ChartStackedBar100Type ()

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

Public Methods

public boolean isStacked100 ()

Indicated whether this type is stacked to percentage relationship. Series are stacked on top of each other, adding up to 100%. Each series' segment represents the percentage that the value contributes to the sum of the values for that category.

Returns
  • true is this chart type is 100% stacked, otherwise false.