ChartDataLabel

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

NameTypeAccessDescription
indexintReadSpecifies the index of the containing element.
showCategoryNamebooleanRead/WriteAllows to specify if category name is to be displayed for the data labels on a chart.
showBubbleSizebooleanRead/WriteAllows to specify if bubble size is to be displayed for the data labels on a chart.
showLegendKeybooleanRead/WriteAllows to specify if legend key is to be displayed for the data labels on a chart.
showPercentagebooleanRead/WriteAllows to specify if percentage value is to be displayed for the data labels on a chart.
showSeriesNamebooleanRead/WriteReturns or sets a Boolean to indicate the series name display behavior for the data labels on a chart.
showValuebooleanRead/WriteAllows to specify if values are to be displayed in the data labels.
showLeaderLinesbooleanRead/WriteAllows to specify if data label leader lines need be shown.
showDataLabelsRangebooleanRead/WriteAllows to specify if values from data labels range to be displayed in the data labels.
separatorStringRead/WriteGets or sets string separator used for the data labels on a chart.
orientationintRead/WriteGets or sets the orientation of the label text.
rotationintRead/WriteGets or sets the rotation of the label in degrees.
visiblebooleanReadReturns true if this data label has something to display.
numberFormatChartNumberFormatReadReturns number format of the parent element.
hiddenbooleanRead/WriteGets/sets a flag indicating whether this label is hidden.
fontFontReadProvides access to the font formatting of this data label.
formatChartFormatReadProvides access to fill and line formatting of the data label.
leftdoubleRead/WriteGets 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.
leftModeintRead/WriteGets 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.
topdoubleRead/WriteGets 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.
topModeintRead/WriteGets 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.
positionintRead/WriteGets or sets the position of the data label.

Methods

SignatureDescription
clearFormat()Clears format of this data label.
getIndex() → intSpecifies the index of the containing element.
getShowCategoryName() → booleanAllows 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() → booleanAllows 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() → booleanAllows 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() → booleanAllows 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() → booleanReturns 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() → booleanAllows to specify if values are to be displayed in the data labels.
setShowValue(value: boolean)Sets the show value value.
getShowLeaderLines() → booleanAllows to specify if data label leader lines need be shown.
setShowLeaderLines(value: boolean)Sets the show leader lines value.
getShowDataLabelsRange() → booleanAllows 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() → StringGets or sets string separator used for the data labels on a chart.
setSeparator(value: String)Sets the separator value.
getOrientation() → intGets or sets the orientation of the label text.
setOrientation(value: int)Sets the orientation value.
getRotation() → intGets or sets the rotation of the label in degrees.
setRotation(value: int)Sets the rotation value.
isVisible() → booleanReturns true if this data label has something to display.
getNumberFormat() → ChartNumberFormatReturns number format of the parent element.
isHidden() → booleanGets/sets a flag indicating whether this label is hidden.
isHidden(value: boolean)Calls isHidden(value) on this ChartDataLabel instance.
getFont() → FontProvides access to the font formatting of this data label.
getFormat() → ChartFormatProvides access to fill and line formatting of the data label.
getLeft() → doubleGets 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() → intGets 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() → doubleGets 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() → intGets 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() → intGets or sets the position of the data label.
setPosition(value: int)Sets the position value.

See Also