IWaterfallDataLabels Interface
Contains data label settings for a waterfall series.
Declaration
public interface IWaterfallDataLabels extends IDataLabelsEx
Remarks
Call the WaterfallSeries.getDataLabels() method to access data label settings for a waterfall 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 WaterfallDataLabel getLabel(int key)
Parameters
| Name | Type | Description |
|---|---|---|
| key | int | The zero-based index of the data point. |
Returns
| Type | Description |
|---|---|
| WaterfallDataLabel | Data label settings, or |
getLabelPosition() Method
Returns the position of data labels relative to waterfall columns.
Declaration
public abstract WaterfallDataLabelPosition getLabelPosition()
Returns
| Type | Description |
|---|---|
| WaterfallDataLabelPosition | The data label position. |
setLabel(int key, WaterfallDataLabel value) Method
Sets settings for the data label of the specified data point.
Declaration
public abstract void setLabel(int key, WaterfallDataLabel value)
Parameters
| Name | Type | Description |
|---|---|---|
| key | int | The zero-based index of the data point. |
| value | WaterfallDataLabel | Data label settings. |
Remarks
Pass a WaterfallDataLabel 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 IWaterfallDataLabels object.
setLabelPosition(WaterfallDataLabelPosition value) Method
Sets the position of data labels relative to waterfall columns.
Declaration
public abstract void setLabelPosition(WaterfallDataLabelPosition value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | WaterfallDataLabelPosition | The data label position. |
Exceptions
| Type | Description |
|---|---|
| NullPointerException | Thrown if the |
Remarks
A new waterfall series uses the WaterfallDataLabelPosition.DEFAULT position.
The value parameter accepts the following values:
| Value | Description |
|---|---|
| CENTER | Indicates that the data label is in the center of the waterfall column. |
| INSIDE_BASE | Indicates that the data label is inside the waterfall column at the column base. |
| INSIDE_END | Indicates that the data label is inside the waterfall column at the column end. |
| OUTSIDE_END | Indicates that the data label is outside the waterfall column beyond the column end. |
| DEFAULT | Indicates that the data label position is not specified, and the chart application uses the default position. |