DataLabel

DataLabel class

Represents a series labels.

DataLabel

NameDescription
DataLabel(ChartDataPoint)Creates a new instance of DataLabel class.

Parameters:

NameTypeDescription
parentImmediateChartDataPointParent ChartDataPoint.

Returns: DataLabel


addTextFrameForOverriding

NameDescription
addTextFrameForOverriding (String)Initialize TextFrameForOverriding with the text in paramener “text”. If TextFrameForOverriding is already initialized then simply changes its text.

Parameters:

NameTypeDescription
textStringText for a new TextFrameForOverriding.

Returns: TextFrame


getActualHeight

NameDescription
getActualHeight ()Specifies actual height of the chart element. Call function IChart.ValidateChartLayout() before to get actual values. Read float.

Returns: float


getActualLabelText

NameDescription
getActualLabelText ()Returns actual label text based on DataLabelFormat settings or TextFrameForOverriding.Text value.

Returns: String


getActualWidth

NameDescription
getActualWidth ()Specifies actual width of the chart element. Call function IChart.ValidateChartLayout() before to get actual values. Read float.

Returns: float


getActualX

NameDescription
getActualX ()Specifies actual x location (left) of the chart element relative to the left top corner of the chart. Call function IChart.ValidateChartLayout() before to get actual values. Read float.

Returns: float


getActualY

NameDescription
getActualY ()Specifies actual top of the chart element relative to the left top corner of the chart. Call function IChart.ValidateChartLayout() before to get actual values. Read float.

Returns: float


getBottom

NameDescription
getBottom ()Bottom. Read-only float.

Returns: float


getChart

NameDescription
getChart ()Returns the parent chart. Read-only IChart.

Returns: Chart


getDataLabelFormat

NameDescription
getDataLabelFormat ()Returns data label format. Read-only IDataLabelFormat.

Returns: DataLabelFormat


getHeight

NameDescription
getHeight ()Returns or sets the height of a title as a fraction of the height of the chart. Read/write float.

Returns: float


getPresentation

NameDescription
getPresentation ()Returns the parent presentation of a FillFormat. Read-only IPresentation.

Returns: Presentation


getRight

NameDescription
getRight ()Right. Read-only float.

Returns: float


getSlide

NameDescription
getSlide ()Returns the parent slide of a FillFormat. Read-only BaseSlide.

Returns: Slide, MasterHandoutSlide, NotesSlide, MasterSlide, MasterNotesSlide, LayoutSlide, BaseSlide


getTextFormat

NameDescription
getTextFormat ()Returns text format. Read-only IChartTextFormat.

Returns: ChartTextFormat


getTextFrameForOverriding

NameDescription
getTextFrameForOverriding ()Can contain a rich formatted text. If this property is not null then this formatted text value overrides auto-generated text of data label. Auto-generated text of data label means text that is managed by ShowSeriesName, ShowValue, … properties and is formatted with the TextFormatManager.TextFormat property. Read-only ITextFrame.

Returns: TextFrame


getValueFromCell

NameDescription
getValueFromCell ()Gets or sets workbook data cell. Applied if IDataLabelFormat.ShowLabelValueFromCell property equals true.

Returns: ChartDataCell


getWidth

NameDescription
getWidth ()Returns or sets the width of a title as a fraction of the width of the chart. Read/write float.

Returns: float


getX

NameDescription
getX ()Returns or sets the x coordinate of a title as a fraction of the width of the chart. Read/write float.

Returns: float


getY

NameDescription
getY ()Returns or sets the y coordinate of a title as a fraction of the height of the chart. Read/write float.

Returns: float


hide

NameDescription
hide ()Make data label hidden by setting all Show*-flags (ShowValue, …) to false state. IsVisible will be false after this. If data label is not visible (IsVisible is false) you can make data label visible with setting Show*-flags (ShowValue, …) to true state.

isVisible

NameDescription
isVisible ()False means that data label is not visible (and so all Show*-flags (ShowValue, …) are false). Read-only boolean. If data label is visible you can make it hidden with Hide() function. But if data label is not visible (IsVisible is false) you can make data label visible with setting Show*-flags (ShowValue, …) to true state.

Returns: boolean


setHeight

NameDescription
setHeight (float)Returns or sets the height of a title as a fraction of the height of the chart. Read/write float.

setValueFromCell

NameDescription
setValueFromCell (ChartDataCell)Gets or sets workbook data cell. Applied if IDataLabelFormat.ShowLabelValueFromCell property equals true.

setWidth

NameDescription
setWidth (float)Returns or sets the width of a title as a fraction of the width of the chart. Read/write float.

setX

NameDescription
setX (float)Returns or sets the x coordinate of a title as a fraction of the width of the chart. Read/write float.

setY

NameDescription
setY (float)Returns or sets the y coordinate of a title as a fraction of the height of the chart. Read/write float.