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
| Name | Type | Access | Description |
|---|---|---|---|
chart | `` | Read | Gets the chart. |
slide | `` | Read | Gets the slide. |
presentation | `` | Read | Gets the presentation. |
is_visible | bool | Read | True when any show_* flag is set on this label or on the series default. |
data_label_format | 'IDataLabelFormat' | Read | Format of this specific label. |
text_format | 'IChartTextFormat' | Read | Chart text format. |
x | float | Read/Write | Gets or sets the x. |
y | float | Read/Write | Gets or sets the y. |
width | float | Read/Write | Gets or sets the width. |
height | float | Read/Write | Gets or sets the height. |
right | float | Read | Gets the right. |
bottom | float | Read | Gets the bottom. |
text_frame_for_overriding | 'ITextFrame' | Read | Overriding text frame for this label, or None. |
value_from_cell | 'IChartDataCell' | Read/Write | Workbook cell whose value is used as label text. |
as_i_chart_component | IChartComponent | Read | Allows to get base IChartComponent interface. |
as_i_slide_component | ISlideComponent | Read | Gets the as i slide component. |
as_i_presentation_component | IPresentationComponent | Read | Gets the as i presentation component. |
actual_x | float | Read | Specifies actual x location (left) of the chart element relative to the left top corner of the chart. |
actual_y | float | Read | Specifies actual top of the chart element relative to the left top corner of the chart. |
actual_width | float | Read | Specifies actual width of the chart element. |
actual_height | float | Read | Specifies actual height of the chart element. |
Methods
| Signature | Description |
|---|---|
add_text_frame_for_overriding(text: str) → 'ITextFrame' | Create or replace the overriding text frame with initial text. |
get_actual_label_text() → str | Return the explicit override text when present, else empty string. |
hide() | Hide this label by setting <c:delete val=‘1’/>. |