DataLabel

Overview

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

Represents a series data point label.

This class provides 3 methods for working with DataLabel objects in Python programs. Available methods include: add_text_frame_for_overriding, get_actual_label_text, hide. All public members are accessible to any Python application after installing the Aspose.Slides FOSS for Python package. Properties: actual_height, actual_width, actual_x, actual_y, as_i_chart_component, as_i_presentation_component, and 15 more.

Properties

NameTypeAccessDescription
chart``ReadGets the chart.
slide``ReadGets the slide.
presentation``ReadGets the presentation.
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.
xfloatRead/WriteGets or sets the x.
yfloatRead/WriteGets or sets the y.
widthfloatRead/WriteGets or sets the width.
heightfloatRead/WriteGets or sets the height.
rightfloatReadGets the right.
bottomfloatReadGets the bottom.
text_frame_for_overriding'ITextFrame'ReadOverriding text frame for this label, or None.
value_from_cell'IChartDataCell'Read/WriteWorkbook cell whose value is used as label text.
as_i_chart_componentIChartComponentReadAllows to get base IChartComponent interface.
as_i_slide_componentISlideComponentReadGets the as i slide component.
as_i_presentation_componentIPresentationComponentReadGets the as i presentation component.
actual_xfloatReadSpecifies actual x location (left) of the chart element relative to the left top corner of the chart.
actual_yfloatReadSpecifies actual top of the chart element relative to the left top corner of the chart.
actual_widthfloatReadSpecifies actual width of the chart element.
actual_heightfloatReadSpecifies actual height of the chart element.

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’/>.

See Also