Skip to main content

ITreemapDataLabels Interface

Contains data label settings for a treemap series.

Declaration

public interface ITreemapDataLabels extends IDataLabelsEx

Remarks

Call the TreemapSeries.getDataLabels() method to access data label settings for a treemap 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 TreemapDataLabel getLabel(int key)

Parameters

Name Type Description
key int

The zero-based index of the data point.

Returns

Type Description
TreemapDataLabel

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

setLabel(int key, TreemapDataLabel value) Method

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

Declaration

public abstract void setLabel(int key, TreemapDataLabel value)

Parameters

Name Type Description
key int

The zero-based index of the data point.

value TreemapDataLabel

Data label settings.

Remarks

Pass a TreemapDataLabel 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 ITreemapDataLabels object.