public class

ChartStepLineType

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

Class Overview

Represents Step Line chart type. A step line chart is similar to a line chart but does not use the shortest distance to connect two data points. Instead, the step line chart uses vertical and horizontal lines to connect the data points in a series forming a step-like progression.

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

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

Summary

Fields
public static final ChartCustomAttribute<Double> BREAK_DELTA Identifies delta break mode used to draw fast line chart.
public static final ChartCustomAttribute<ChartLineType.BreakMode> BREAK_MODE Identifies value that determines whether auto break mode should be enabled for line chart type.
public static final ChartCustomAttribute<Boolean> BREAK_POINT Identifies value that determines point value used for breaks.
public static final ChartCustomAttribute<Integer> HIT_RADIUS Represents value used to measure line's width when user hits it with a tap.
public static final ChartCustomAttribute<Boolean> INVERSED Identifies whether this type is inversed.
[Expand]
Inherited Fields
From class com.artfulbits.aiCharts.Base.ChartType
Public Constructors
ChartStepLineType()
Sole constructor.
Public Methods
void draw(ChartRenderArgs args)
Draws this chart type on surface specified along.
[Expand]
Inherited Methods
From class com.artfulbits.aiCharts.Base.ChartType
From class java.lang.Object

Fields

public static final ChartCustomAttribute<Double> BREAK_DELTA

Identifies delta break mode used to draw fast line chart.

public static final ChartCustomAttribute<ChartLineType.BreakMode> BREAK_MODE

Identifies value that determines whether auto break mode should be enabled for line chart type.

public static final ChartCustomAttribute<Boolean> BREAK_POINT

Identifies value that determines point value used for breaks.

public static final ChartCustomAttribute<Integer> HIT_RADIUS

Represents value used to measure line's width when user hits it with a tap.

public static final ChartCustomAttribute<Boolean> INVERSED

Identifies whether this type is inversed.

Public Constructors

public ChartStepLineType ()

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.