DonutSeries Class

A pie chart with a hole in the center.

Syntax

public class DonutSeries
extends PieSeries

The following image demonstrates Donut series:

Donut

Constructors

DonutSeries() Constructor

Initializes a new DonutSeries class instance with default parameters.

Syntax

public DonutSeries()

Methods

getHoleRadius() Method

Returns the Donut series's inner cicle radius.

Syntax

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.

setHoleRadius(float) Method

Specifies the Donut series's inner cicle radius.

Syntax

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.