public class

ChartFunnelType

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

Class Overview

Represents Funnel chart type. Funnel chart type displays data that equals 100% when totaled. This is a single series chart representing the data as portions of 100%. This chart type does not require coordinate system to be displayed.

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

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

Summary

Nested Classes
enum ChartFunnelType.Style Represents the mode that is used to draw the funnel. 
Fields
public static final ChartCustomAttribute<Float> GAP_RATIO Identifies the gap ratio for funnel type.
public static final ChartCustomAttribute<Float> MINIMAL Identifies the minimal value.
public static final ChartCustomAttribute<Float> NECK_HEIGHT Identifies height of funnel's neck.
public static final ChartCustomAttribute<Float> NECK_WIDTH Identifies width of funnel's neck.
public static final ChartCustomAttribute<ChartFunnelType.Style> STYLE Identifies the style used to draw funnel.
[Expand]
Inherited Fields
From class com.artfulbits.aiCharts.Base.ChartType
Public Constructors
ChartFunnelType()
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 the gap ratio for funnel type.

public static final ChartCustomAttribute<Float> MINIMAL

Identifies the minimal value.

public static final ChartCustomAttribute<Float> NECK_HEIGHT

Identifies height of funnel's neck.

public static final ChartCustomAttribute<Float> NECK_WIDTH

Identifies width of funnel's neck.

public static final ChartCustomAttribute<ChartFunnelType.Style> STYLE

Identifies the style used to draw funnel.

Public Constructors

public ChartFunnelType ()

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