Summ:  Nested Fields Constr. Methods    Details:  Fields Constr. Methods      Class:  Prev Next
com.artfulbits.aiCharts.Types
Class ChartDoughnutType

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

Declaration: public class ChartDoughnutType extends ChartPieType

 

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.

 

Since: 1.5

 

 

Nested Members Summary

 

Nested members inherited from class: com.artfulbits.aiCharts.Types.ChartPieType
ChartPieType.LabelStyle

 

 

Fields Summary
static ChartCustomAttribute<java.lang.Float> INNER_RADIUS
    
Indicates whether points should be shuffled.

 

Fields inherited from class: com.artfulbits.aiCharts.Types.ChartPieType
ANGLE_OFFSET, EXPAND_RADIUS, LABEL_OFFSET, LABEL_STYLE, MINIMAL_SIZE, OPTIMIZE_POINTS, TICK_SIZE

 

Fields inherited from class: com.artfulbits.aiCharts.Base.ChartType
POINT_WIDTH

 

 

Constructors Summary
ChartDoughnutType()
    

 

 

Methods Summary
void draw(ChartRenderArgs args)
    
Draws this chart type on surface specified along.

 

Methods inherited from class: com.artfulbits.aiCharts.Types.ChartPieType
colorPerPoint, drawMarkers, getName, getRequiredCoordinateSystem

 

Methods inherited from class: com.artfulbits.aiCharts.Base.ChartType
computeXRange, computeYRange, getRequiredUsages, getXRange, getYRange, isCompatible, isCompatible, isOriginDependent, isRotated, isSideBySide, isStacked, isStacked100

 

Methods inherited from class: java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

 

 

 

INNER_RADIUS

 

public static final ChartCustomAttribute<java.lang.Float> INNER_RADIUS

 

Indicates whether points should be shuffled.

 

Since: 1.5

 

 

 

 

ChartDoughnutType

 

public ChartDoughnutType( )

 

 

 

 

draw

 

public void draw( ChartRenderArgs args)

 

[ description from ChartType.draw(ChartRenderArgs) ]
 
Draws this chart type on surface specified along.

 

Parameters:
args-
instance of ChartRenderArgs that provides facilities to draw this type.

 

Overrides: ChartPieType.draw(ChartRenderArgs)

 

 

© 2005 - 2010 ArtfulBits. All rights reserved.