IDataLabel
Overview
IDataLabel is a class in Aspose.Slides FOSS for Python.
Inherits from: ILayoutable, IOverridableText, IActualLayout, and 1 more.
Represents a series labels.
This class declares 3 methods for IDataLabel objects in Python programs.
Available methods include: add_text_frame_for_overriding, get_actual_label_text, hide.
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 |
|---|---|---|---|
is_visible | bool | Read | False means that data label is not visible (and so all Show*-flags (ShowValue, …) are false). |
data_label_format | IDataLabelFormat | Read | Returns format of the data label. |
value_from_cell | IChartDataCell | Read/Write | Gets or sets workbook data cell. |
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. |
chart | IChart | Read | Gets the chart. |
slide | IBaseSlide | Read | Gets the slide. |
presentation | IPresentation | Read | Gets the presentation. |
text_frame_for_overriding | ITextFrame | Read | Gets the text frame for overriding. |
text_format | IChartTextFormat | Read | Gets the text format. |
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 |
|---|---|
hide() | Makes a chart data label invisible without removing it from the series |
get_actual_label_text() → str | Returns the actual label text. |
add_text_frame_for_overriding(text) → ITextFrame | Creates a text frame with the given text for overriding the label |