public class ChartDataLabel
extends java.lang.Object
implements java.lang.Cloneable
To learn more, visit the Working with Charts documentation article.
On a series, theChartDataLabel object is a member of the ChartDataLabelCollection. The ChartDataLabelCollection contains a ChartDataLabel object for each point.| Modifier and Type | Method and Description |
|---|---|
void |
clearFormat()
Clears format of this data label.
|
int |
getIndex()
Specifies the index of the containing element.
|
ChartNumberFormat |
getNumberFormat()
Returns number format of the parent element.
|
java.lang.String |
getSeparator()
Gets string separator used for the data labels on a chart.
|
boolean |
getShowBubbleSize()
Allows to specify if bubble size is to be displayed for the data labels on a chart.
|
boolean |
getShowCategoryName()
Allows to specify if category name is to be displayed for the data labels on a chart.
|
boolean |
getShowDataLabelsRange()
Allows to specify if values from data labels range to be displayed in the data labels.
|
boolean |
getShowLeaderLines()
Allows to specify if data label leader lines need be shown.
|
boolean |
getShowLegendKey()
Allows to specify if legend key is to be displayed for the data labels on a chart.
|
boolean |
getShowPercentage()
Allows to specify if percentage value is to be displayed for the data labels on a chart.
|
boolean |
getShowSeriesName()
Gets a Boolean to indicate the series name display behavior for the data labels on a chart.
|
boolean |
getShowValue()
Allows to specify if values are to be displayed in the data labels.
|
boolean |
isHidden()
Gets/sets a flag indicating whether this label is hidden.
|
void |
isHidden(boolean value)
Gets/sets a flag indicating whether this label is hidden.
|
boolean |
isInherited() |
boolean |
isVisible()
Returns true if this data label has something to display.
|
protected java.lang.Object |
memberwiseClone() |
void |
setSeparator(java.lang.String value)
Sets string separator used for the data labels on a chart.
|
void |
setShowBubbleSize(boolean value)
Allows to specify if bubble size is to be displayed for the data labels on a chart.
|
void |
setShowCategoryName(boolean value)
Allows to specify if category name is to be displayed for the data labels on a chart.
|
void |
setShowDataLabelsRange(boolean value)
Allows to specify if values from data labels range to be displayed in the data labels.
|
void |
setShowLeaderLines(boolean value)
Allows to specify if data label leader lines need be shown.
|
void |
setShowLegendKey(boolean value)
Allows to specify if legend key is to be displayed for the data labels on a chart.
|
void |
setShowPercentage(boolean value)
Allows to specify if percentage value is to be displayed for the data labels on a chart.
|
void |
setShowSeriesName(boolean value)
Sets a Boolean to indicate the series name display behavior for the data labels on a chart.
|
void |
setShowValue(boolean value)
Allows to specify if values are to be displayed in the data labels.
|
public void clearFormat()
public int getIndex()
int value.public boolean getShowCategoryName()
boolean value.public void setShowCategoryName(boolean value)
value - The corresponding boolean value.public boolean getShowBubbleSize()
boolean value.public void setShowBubbleSize(boolean value)
value - The corresponding boolean value.public boolean getShowLegendKey()
boolean value.public void setShowLegendKey(boolean value)
value - The corresponding boolean value.public boolean getShowPercentage()
boolean value.public void setShowPercentage(boolean value)
value - The corresponding boolean value.public boolean getShowSeriesName()
public void setShowSeriesName(boolean value)
value - A Boolean to indicate the series name display behavior for the data labels on a chart.public boolean getShowValue()
boolean value.public void setShowValue(boolean value)
value - The corresponding boolean value.public boolean getShowLeaderLines()
boolean value.public void setShowLeaderLines(boolean value)
value - The corresponding boolean value.public boolean getShowDataLabelsRange()
boolean value.public void setShowDataLabelsRange(boolean value)
value - The corresponding boolean value.public java.lang.String getSeparator()
public void setSeparator(java.lang.String value)
value - String separator used for the data labels on a chart.public boolean isVisible()
public ChartNumberFormat getNumberFormat()
public boolean isHidden()
boolean value.public void isHidden(boolean value)
value - The corresponding boolean value.public boolean isInherited()
protected java.lang.Object memberwiseClone()