DataLabel
Overview
DataLabel is a class in Aspose.Slides FOSS for Python.
Inherits from: IDataLabel.
Represents a series data point label.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
chart | `` | Read | Provides access to the chart that contains this data label |
slide | `` | Read | Returns the slide on which the label’s chart resides |
presentation | `` | Read | Gives the presentation object that owns the label |
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 | Is the horizontal position of the label in points |
y | float | Read | Is the vertical position of the label in points |
width | float | Read | Is the label’s width in points |
height | float | Read | |
right | float | Read | Is the x-coordinate of the label’s right edge |
bottom | float | Read | Is the y-coordinate of the label’s bottom edge |
text_frame_for_overriding | 'ITextFrame' | Read | Overriding text frame for this label, or None. |
value_from_cell | 'IChartDataCell' | Read | Workbook cell whose value is used as label text. |
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’/>. |