DonutSeries Class

A pie chart with a hole in the center.

Declaration

public class DonutSeries
extends PieSeries

The following image demonstrates Donut series:

Donut

Constructors

DonutSeries() Constructor

Initializes a new DonutSeries class instance with default parameters.

Declaration

public DonutSeries()

Methods

DonutSeries.getHoleRadius() Method

Returns the Donut series's inner cicle radius.

Declaration

public float getHoleRadius()

Returns

Type Description
float

The hole radius as a percentage of the Donut series's radius.

Note that this value should be in the [0; 1] interval.

DonutSeries.setHoleRadius(float) Method

Specifies the Donut series's inner cicle radius.

Declaration

public void setHoleRadius(float radius)

Parameters

Type Name Description
float radius

The hole radius as a percentage of the Donut series's radius.

Note that this value should be in the [0; 1] interval.