public class

ChartPointType

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

Class Overview

Represents Point chart type. The data is displayed as a collection of points, each having the value of one variable determining the position on the horizontal axis and the value of the other variable determining the position on the vertical axis.

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

Point 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 point's radius when user hits it with a tap.
[Expand]
Inherited Fields
From class com.artfulbits.aiCharts.Base.ChartType
Public Constructors
ChartPointType()
Sole constructor.
Public Methods
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.
[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 point's radius when user hits it with a tap.

Public Constructors

public ChartPointType ()

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.

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.