ChartDataLabel
Overview
ChartDataLabel is a class in Aspose.Words FOSS for Java.
Inherits from: INumberFormatProvider, IChartItemTextProperties, IChartFormatSource, and 1 more.
Represents data label on a chart point or trendline.
Edition status of its 61 listed members (a property and its accessor methods are listed separately, overloads once): 61 not yet exercised by a verified example.
This class declares 40 methods for ChartDataLabel objects in Java programs.
Available methods include: clearFormat, getFont, getFormat, getIndex, getLeft, getLeftMode, getNumberFormat, getOrientation, getPosition, getRotation, getSeparator, getShowBubbleSize, and 27 additional methods.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: font, format, hidden, index, left, leftMode, and 16 more.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
index | int | Read | Specifies the index of the containing element. |
showCategoryName | boolean | Read/Write | Allows to specify if category name is to be displayed for the data labels on a chart. |
showBubbleSize | boolean | Read/Write | Allows to specify if bubble size is to be displayed for the data labels on a chart. |
showLegendKey | boolean | Read/Write | Allows to specify if legend key is to be displayed for the data labels on a chart. |
showPercentage | boolean | Read/Write | Allows to specify if percentage value is to be displayed for the data labels on a chart. |
showSeriesName | boolean | Read/Write | Returns or sets a Boolean to indicate the series name display behavior for the data labels on a chart. |
showValue | boolean | Read/Write | Allows to specify if values are to be displayed in the data labels. |
showLeaderLines | boolean | Read/Write | Allows to specify if data label leader lines need be shown. |
showDataLabelsRange | boolean | Read/Write | Allows to specify if values from data labels range to be displayed in the data labels. |
separator | String | Read/Write | Gets or sets string separator used for the data labels on a chart. |
orientation | int | Read/Write | Gets or sets the orientation of the label text. |
rotation | int | Read/Write | Gets or sets the rotation of the label in degrees. |
visible | boolean | Read | Returns true if this data label has something to display. |
numberFormat | ChartNumberFormat | Read | Returns number format of the parent element. |
hidden | boolean | Read/Write | Gets/sets a flag indicating whether this label is hidden. |
font | Font | Read | Provides access to the font formatting of this data label. |
format | ChartFormat | Read | Provides access to fill and line formatting of the data label. |
left | double | Read/Write | Gets or sets the distance of the data label in points from the left edge of the chart or from the position specified by its Position property, depending on the value of the LeftMode property. |
leftMode | int | Read/Write | Gets or sets the interpretation mode of the Left property value: whether it sets the location of the data label from the left edge of the chart of from the position specified by its Position property. |
top | double | Read/Write | Gets or sets the distance of the data label in points from the top edge of the chart or from the position specified by its Position property, depending on the value of the TopMode property. |
topMode | int | Read/Write | Gets or sets the interpretation mode of the Top property value: whether it sets the location of the data label from the top edge of the chart of from the position specified by its Position property. |
position | int | Read/Write | Gets or sets the position of the data label. |
Methods
| Signature | Description |
|---|---|
clearFormat() | Clears format of this data label. |
getIndex() → int | Specifies the index of the containing element. |
getShowCategoryName() → boolean | Allows to specify if category name is to be displayed for the data labels on a chart. |
setShowCategoryName(value: boolean) | Sets the show category name value. |
getShowBubbleSize() → boolean | Allows to specify if bubble size is to be displayed for the data labels on a chart. |
setShowBubbleSize(value: boolean) | Sets the show bubble size value. |
getShowLegendKey() → boolean | Allows to specify if legend key is to be displayed for the data labels on a chart. |
setShowLegendKey(value: boolean) | Sets the show legend key value. |
getShowPercentage() → boolean | Allows to specify if percentage value is to be displayed for the data labels on a chart. |
setShowPercentage(value: boolean) | Sets the show percentage value. |
getShowSeriesName() → boolean | Returns or sets a Boolean to indicate the series name display behavior for the data labels on a chart. |
setShowSeriesName(value: boolean) | Sets the show series name value. |
getShowValue() → boolean | Allows to specify if values are to be displayed in the data labels. |
setShowValue(value: boolean) | Sets the show value value. |
getShowLeaderLines() → boolean | Allows to specify if data label leader lines need be shown. |
setShowLeaderLines(value: boolean) | Sets the show leader lines value. |
getShowDataLabelsRange() → boolean | Allows to specify if values from data labels range to be displayed in the data labels. |
setShowDataLabelsRange(value: boolean) | Sets the show data labels range value. |
getSeparator() → String | Gets or sets string separator used for the data labels on a chart. |
setSeparator(value: String) | Sets the separator value. |
getOrientation() → int | Gets or sets the orientation of the label text. |
setOrientation(value: int) | Sets the orientation value. |
getRotation() → int | Gets or sets the rotation of the label in degrees. |
setRotation(value: int) | Sets the rotation value. |
isVisible() → boolean | Returns true if this data label has something to display. |
getNumberFormat() → ChartNumberFormat | Returns number format of the parent element. |
isHidden() → boolean | Gets/sets a flag indicating whether this label is hidden. |
isHidden(value: boolean) | Calls isHidden(value) on this ChartDataLabel instance. |
getFont() → Font | Provides access to the font formatting of this data label. |
getFormat() → ChartFormat | Provides access to fill and line formatting of the data label. |
getLeft() → double | Gets or sets the distance of the data label in points from the left edge of the chart or from the position specified by its Position property, depending on the value of the LeftMode property. |
setLeft(value: double) | Sets the left value. |
getLeftMode() → int | Gets or sets the interpretation mode of the Left property value: whether it sets the location of the data label from the left edge of the chart of from the position specified by its Position property. |
setLeftMode(value: int) | Sets the left mode value. |
getTop() → double | Gets or sets the distance of the data label in points from the top edge of the chart or from the position specified by its Position property, depending on the value of the TopMode property. |
setTop(value: double) | Sets the top value. |
getTopMode() → int | Gets or sets the interpretation mode of the Top property value: whether it sets the location of the data label from the top edge of the chart of from the position specified by its Position property. |
setTopMode(value: int) | Sets the top mode value. |
getPosition() → int | Gets or sets the position of the data label. |
setPosition(value: int) | Sets the position value. |