DoughnutDataLabel Class
Contains settings for a data label in a doughnut chart.
Declaration
public class DoughnutDataLabel extends DataLabel
Remarks
The DoughnutDataLabel class inherits label content and formatting settings from DataLabel and DataLabelBase classes (for example, DoughnutDataLabel.setShowValue(value) and DoughnutDataLabel.setCustomText(value) methods).
The setShowPercent(boolean value) method specifies whether the data label displays the percentage value.
Refer to the following help topic for additional information: Customize Chart Data Labels — Presentation API for Java.
Inherited Members
Inheritance
DoughnutDataLabel()
Initializes a new instance of the DoughnutDataLabel class.
Declaration
public DoughnutDataLabel()
Methods
deepClone() Method
Returns a deep copy of this DoughnutDataLabel instance.
Declaration
public DoughnutDataLabel deepClone()
Returns
| Type | Description |
|---|---|
DoughnutDataLabel |
A deep copy of this |
getShowPercent() Method
Returns whether the data label displays the percentage value.
Declaration
public boolean getShowPercent()
Returns
| Type | Description |
|---|---|
| boolean |
|
setShowPercent(boolean value) Method
Sets whether to display the percentage value in the data label.
Declaration
public void setShowPercent(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
Remarks
If you do not call the setShowPercent(value) method, the API uses false for a new data label and the value from the document for a loaded data label.