DataLabel class

DataLabel class

Represents a series labels.

The DataLabel type exposes the following members:

Constructors

ConstructorDescription
__init__Creates a new instance of DataLabel class.

Properties

PropertyDescription
chartReturns the parent chart.
Read-only IChart.
is_visibleFalse means that data label is not visible (and so all Show*-flags (ShowValue, …) are false).
Read-only bool.
text_frame_for_overridingCan 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.
text_formatReturns text format.
Read-only IChartTextFormat.
xReturns or sets the x coordinate of a title as a fraction of the width of the chart.
Read/write float.
yReturns or sets the y coordinate of a title as a fraction of the height of the chart.
Read/write float.
widthReturns or sets the width of a title as a fraction of the width of the chart.
Read/write float.
heightReturns or sets the height of a title as a fraction of the height of the chart.
Read/write float.
rightRight.
Read-only float.
bottomBottom.
Read-only float.
data_label_formatReturns data label format.
Read-only IDataLabelFormat.
value_from_cellGets or sets workbook data cell. Applied if IDataLabelFormat.ShowLabelValueFromCell property equals true.
actual_xSpecifies actual x location (left) of the chart element relative to the left top corner of the chart.
Call method IChart.ValidateChartLayout() before to get actual values.
Read float.
actual_ySpecifies actual top of the chart element relative to the left top corner of the chart.
Call method IChart.ValidateChartLayout() before to get actual values.
Read float.
actual_widthSpecifies actual width of the chart element. Call method IChart.ValidateChartLayout() before to get actual values.
Read float.
actual_heightSpecifies actual height of the chart element. Call method IChart.ValidateChartLayout() before to get actual values.
Read float.
slide
presentation

Methods

MethodDescription
hideMake data label hidden by setting all Show*-flags (ShowValue, …) to false state.
IsVisible will be false after this.
get_actual_label_textReturns actual label text based on DataLabelFormat settings or TextFrameForOverriding.Text value.
add_text_frame_for_overridingInitialize TextFrameForOverriding with the text in paramener “text”.
If TextFrameForOverriding is already initialized then simply changes its text.

See Also