Skip to main content

IDataLabels Interface

The base interface for series and chart view data label settings in standard charts.

Declaration

public interface IDataLabels extends IDataLabelBase, Map<Integer,DataLabel>

Remarks

The IDataLabels interface contains common data label settings (inherited from IDataLabelBase), leader line settings, and a map of individual data labels. Map keys are zero-based data point indexes. Map values are DataLabel objects with settings for the data label of an individual data point.

The following interfaces extend the IDataLabels interface: IAreaDataLabels, IBar3DDataLabels, IBarDataLabels, IBubbleDataLabels, IDoughnutDataLabels, ILine3DDataLabels, ILineDataLabels, IPieDataLabels, IRadarDataLabels, IScatterDataLabels, and IStockDataLabels.

Each of these interfaces accepts data labels of a single type (for example, ILineDataLabels accepts LineDataLabel objects). If you put a data label of another type into the map, the put method throws an IllegalArgumentException.

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

Implements

java.util.Map<java.lang.Integer,com.devexpress.docs.office.DataLabel>

Methods

getLeaderLineProperties() Method

Returns fill, outline, and shape effect settings for leader lines.

Declaration

public abstract ChartElement getLeaderLineProperties()

Returns

Type Description
ChartElement

Fill, outline, and shape effect settings.

getShowLeaderLines() Method

Returns whether leader lines connect data labels to data points.

Declaration

public abstract boolean getShowLeaderLines()

Returns

Type Description
boolean

true if leader lines connect data labels to data points; otherwise, false.

setLeaderLineProperties(ChartElement value) Method

Sets fill, outline, and shape effect settings for leader lines.

Declaration

public abstract void setLeaderLineProperties(ChartElement value)

Parameters

Name Type Description
value ChartElement

Fill, outline, and shape effect settings.

setShowLeaderLines(boolean value) Method

Sets whether to display leader lines that connect data labels to data points.

Declaration

public abstract void setShowLeaderLines(boolean value)

Parameters

Name Type Description
value boolean

true to display leader lines; otherwise, false.

Remarks

Call the setLeaderLineProperties(ChartElement value) method to customize leader line appearance.