DataLabel

Overview

DataLabel is a class in Aspose.Slides FOSS for Python. Inherits from: IDataLabel.

Represents a series data point label.

Properties

NameTypeAccessDescription
chart``ReadProvides access to the chart that contains this data label
slide``ReadReturns the slide on which the label’s chart resides
presentation``ReadGives the presentation object that owns the label
is_visibleboolReadTrue when any show_* flag is set on this label or on the series default.
data_label_format'IDataLabelFormat'ReadFormat of this specific label.
text_format'IChartTextFormat'ReadChart text format.
xfloatReadIs the horizontal position of the label in points
yfloatReadIs the vertical position of the label in points
widthfloatReadIs the label’s width in points
heightfloatRead
rightfloatReadIs the x-coordinate of the label’s right edge
bottomfloatReadIs the y-coordinate of the label’s bottom edge
text_frame_for_overriding'ITextFrame'ReadOverriding text frame for this label, or None.
value_from_cell'IChartDataCell'ReadWorkbook cell whose value is used as label text.

Methods

SignatureDescription
add_text_frame_for_overriding(text: str)'ITextFrame'Create or replace the overriding text frame with initial text.
get_actual_label_text()strReturn the explicit override text when present, else empty string.
hide()Hide this label by setting <c:delete val=‘1’/>.