public class

ChartBubbleType

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

Class Overview

Represents Bubble chart type. A bubble chart draws bubbles for each point in a series. The series expects three values per bubble: the domain (X-axis value) value, range (first y-axis value) value and the optional size value (second y-axis value).

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

Bubble type uses YValue and SizeValue (optional) types to determine index of corresponding Y value and bubble size among chart point's Y values.

Summary

Fields
public static final ChartCustomAttribute<Integer> MAX_RADIUS Identifies the maximum radius of bubble.
public static final ChartCustomAttribute<Integer> MIN_RADIUS Identifies the minimum radius of bubble.
[Expand]
Inherited Fields
From class com.artfulbits.aiCharts.Base.ChartType
Public Constructors
ChartBubbleType()
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> MAX_RADIUS

Identifies the maximum radius of bubble. Default value is 30.

public static final ChartCustomAttribute<Integer> MIN_RADIUS

Identifies the minimum radius of bubble. Default value is 10.

Public Constructors

public ChartBubbleType ()

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.