public class

ChartDoughnutType

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

Class Overview

Represents Donut chart type. A doughnut chart displays value data as percentages of the whole. Categories are represented by individual slices. Doughnut charts are functionally identical to pie charts.

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

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

Summary

Fields
public static final ChartCustomAttribute<Float> INNER_RADIUS Indicates whether points should be shuffled.
[Expand]
Inherited Fields
From class com.artfulbits.aiCharts.Types.ChartPieType
From class com.artfulbits.aiCharts.Base.ChartType
Public Constructors
ChartDoughnutType()
Public Methods
void draw(ChartRenderArgs args)
Draws this chart type on surface specified along.
[Expand]
Inherited Methods
From class com.artfulbits.aiCharts.Types.ChartPieType
From class com.artfulbits.aiCharts.Base.ChartType
From class java.lang.Object

Fields

public static final ChartCustomAttribute<Float> INNER_RADIUS

Indicates whether points should be shuffled.

Public Constructors

public ChartDoughnutType ()

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.