IDataLabelExBase Interface
The base interface for common data label settings in chart types introduced in Microsoft Excel 2016.
Declaration
public interface IDataLabelExBase
Remarks
The IDataLabelsEx interface extends the IDataLabelExBase interface. Call the getDataLabels() method of a series (for example, WaterfallSeries.getDataLabels()) to access data label settings. The settings apply to data labels of all data points in the series.
A data label can display the data point value, the category name, and the series name. The following methods specify data label content:
Refer to the following help topic for additional information: Customize Chart Data Labels — Presentation API for Java.
Methods
getNumberFormat() Method
Returns number format settings for numeric values in data labels.
Declaration
public abstract NumberFormatOptions getNumberFormat()
Returns
| Type | Description |
|---|---|
| NumberFormatOptions | Number format settings. |
getProperties() Method
Returns fill, outline, and shape effect settings for data labels.
Declaration
public abstract ChartElement getProperties()
Returns
| Type | Description |
|---|---|
| ChartElement | Fill, outline, and shape effect settings. |
getSeparator() Method
Returns the separator between parts of data label text.
Declaration
public abstract String getSeparator()
Returns
| Type | Description |
|---|---|
| String | The separator string. |
getShowCategoryName() Method
Returns whether data labels display category names.
Declaration
public abstract boolean getShowCategoryName()
Returns
| Type | Description |
|---|---|
| boolean |
|
getShowSeriesText() Method
Returns whether data labels display the series name.
Declaration
public abstract boolean getShowSeriesText()
Returns
| Type | Description |
|---|---|
| boolean |
|
getShowValue() Method
Returns whether data labels display data point values.
Declaration
public abstract boolean getShowValue()
Returns
| Type | Description |
|---|---|
| boolean |
|
getTextProperties() Method
Returns text formatting settings for data labels.
Declaration
public abstract TextProperties getTextProperties()
Returns
| Type | Description |
|---|---|
| TextProperties | Text formatting settings. |
setNumberFormat(NumberFormatOptions value) Method
Sets number format settings for numeric values in data labels.
Declaration
public abstract void setNumberFormat(NumberFormatOptions value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | NumberFormatOptions | Number format settings. |
setProperties(ChartElement value) Method
Sets fill, outline, and shape effect settings for data labels.
Declaration
public abstract void setProperties(ChartElement value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | ChartElement | Fill, outline, and shape effect settings. |
setSeparator(String value) Method
Sets the separator between parts of data label text.
Declaration
public abstract void setSeparator(String value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | String | The separator string. |
setShowCategoryName(boolean value) Method
Sets whether to display category names in data labels.
Declaration
public abstract void setShowCategoryName(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
setShowSeriesText(boolean value) Method
Sets whether to display the series name in data labels.
Declaration
public abstract void setShowSeriesText(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
setShowValue(boolean value) Method
Sets whether to display data point values in data labels.
Declaration
public abstract void setShowValue(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
setTextProperties(TextProperties value) Method
Sets text formatting settings for data labels.
Declaration
public abstract void setTextProperties(TextProperties value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | TextProperties | Text formatting settings. |