public class

ChartPyramidType

extends ChartType
java.lang.Object
   ↳ com.artfulbits.aiCharts.Base.ChartType
     ↳ com.artfulbits.aiCharts.Types.ChartPyramidType

Class Overview

Represents Pyramid chart type. Pyramid charts are another type of accumulation chart which has a triangular upper surface that converge at one point. Similar to a ChartFunnelType chart, the height of a segment is proportional to the Y value of the corresponding point.

 // Creating series.
 ChartSeries series = new ChartSeries("Series 1", ChartTypes.Pyramid);
 // Filling series with 10 data points.
 for(int i = 0; i < 10; i++)
 {
 	series.getPoints().addXY(i, i);
 }
 
Similar output should be expected:

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

Summary

Nested Classes
enum ChartPyramidType.Style Represents style that is used to draw the pyramid. 
Fields
public static final ChartCustomAttribute<Float> GAP_RATIO Identifies pyramid gap ratio.
public static final ChartCustomAttribute<Float> MINIMAL Identifies minimal pyramid value.
public static final ChartCustomAttribute<ChartPyramidType.Style> STYLE Identifies the style used to draw the pyramid.
[Expand]
Inherited Fields
From class com.artfulbits.aiCharts.Base.ChartType
Public Constructors
ChartPyramidType()
Sole constructor.
Public Methods
boolean colorPerPoint()
Indicated whether this chart type requires separate color for each point it draws.
void draw(ChartRenderArgs args)
Draws this chart type on surface specified along.
void drawMarkers(ChartRenderArgs args)
Iterates over points collection for this chart type and draws marker for each point that requires it.
CoordinateSystem getRequiredCoordinateSystem()
Gets value indicating coordinate system that this chart type requires to be shown.
[Expand]
Inherited Methods
From class com.artfulbits.aiCharts.Base.ChartType
From class java.lang.Object

Fields

public static final ChartCustomAttribute<Float> GAP_RATIO

Identifies pyramid gap ratio.

public static final ChartCustomAttribute<Float> MINIMAL

Identifies minimal pyramid value.

public static final ChartCustomAttribute<ChartPyramidType.Style> STYLE

Identifies the style used to draw the pyramid.

Public Constructors

public ChartPyramidType ()

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

Public Methods

public boolean colorPerPoint ()

Indicated whether this chart type requires separate color for each point it draws.

Returns
  • true if this chart type requires color for each point, otherwise false.

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 void drawMarkers (ChartRenderArgs args)

Iterates over points collection for this chart type and draws marker for each point that requires it.

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

public CoordinateSystem getRequiredCoordinateSystem ()

Gets value indicating coordinate system that this chart type requires to be shown.

Returns