Skip to main content

IAreaDataLabels Interface

Contains data label settings for an area or 3D area series.

Declaration

public interface IAreaDataLabels extends IDataLabels

Remarks

Call the AreaSeries.getDataLabels() or Area3DSeries.getDataLabels() method to access data label settings for an area or 3D area series.

Refer to the following help topic for additional information: Customize Chart Data Labels — Presentation API for Java.

Implements

Methods

getLabel(int key) Method

Returns settings for the data label of the specified data point.

Declaration

public abstract AreaDataLabel getLabel(int key)

Parameters

Name Type Description
key int

The zero-based index of the data point.

Returns

Type Description
AreaDataLabel

Data label settings, or null if the data point has no individual data label settings.

setLabel(int key, AreaDataLabel value) Method

Sets settings for the data label of the specified data point.

Declaration

public abstract void setLabel(int key, AreaDataLabel value)

Parameters

Name Type Description
key int

The zero-based index of the data point.

value AreaDataLabel

Data label settings.

Exceptions

Type Description
ArgumentNullException

Thrown if the value parameter is null and the series is in a presentation.

Remarks

Pass a AreaDataLabel object to the setLabel(key, value) method to format the data label of an individual data point.

To remove individual data label settings, call the remove(key) method of the IAreaDataLabels object.