public class

ChartSplineType

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

Class Overview

Represents Spline chart type. A spline chart is a line chart that plots a fitted curve through each data point in a series.

 // Creating series.
 ChartSeries series = new ChartSeries("Series 1", ChartTypes.Spline);
 // 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:

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

Summary

Fields
public static final ChartCustomAttribute<Integer> HIT_RADIUS Represents value used to measure spline's width when user hits it with a tap.
public static final ChartCustomAttribute<Float> TENSION Represents tension of spline.
[Expand]
Inherited Fields
From class com.artfulbits.aiCharts.Base.ChartType
Public Constructors
ChartSplineType()
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<Integer> HIT_RADIUS

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

public static final ChartCustomAttribute<Float> TENSION

Represents tension of spline. Bigger value - less curvature. Default value - 1.

Public Constructors

public ChartSplineType ()

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.