Skip to main content

DonutSeries Class

A pie chart with a hole in the center.

Declaration

public class DonutSeries
extends PieSeries

Remarks

The following image demonstrates Donut series:

Donut

DonutSeries()

Initializes a new DonutSeries class instance with default parameters.

Declaration

public DonutSeries()

Methods

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.

Remarks

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

setHoleRadius(float) Method

Specifies the Donut series’s inner cicle radius.

Declaration

public void setHoleRadius(float radius)

Parameters

Name Type Description
radius float

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

Remarks

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