DataLabel class
Contents
[
Hide
]DataLabel class
Represents a series labels.
The DataLabel type exposes the following members:
Constructors
| Constructor | Description | 
|---|---|
| __init__ | Creates a new instance of DataLabel class. | 
Properties
| Property | Description | 
|---|---|
| chart | Returns the parent chart. Read-only IChart. | 
| is_visible | False means that data label is not visible (and so all Show*-flags (ShowValue, …) are false). Read-only bool. | 
| text_frame_for_overriding | Can contain a rich formatted text. If this property is not None then this formatted text value overrides auto-generated text of data label. Auto-generated text of data label means text that is managed by ShowSeriesName, ShowValue, … properties and is formatted with the TextFormatManager.TextFormat property. Read-only ITextFrame. | 
| text_format | Returns text format. Read-only IChartTextFormat. | 
| x | Returns or sets the x coordinate of a title as a fraction of the width of the chart. Read/write float. | 
| y | Returns or sets the y coordinate of a title as a fraction of the height of the chart. Read/write float. | 
| width | Returns or sets the width of a title as a fraction of the width of the chart. Read/write float. | 
| height | Returns or sets the height of a title as a fraction of the height of the chart. Read/write float. | 
| right | Right. Read-only float. | 
| bottom | Bottom. Read-only float. | 
| data_label_format | Returns data label format. Read-only IDataLabelFormat. | 
| value_from_cell | Gets or sets workbook data cell. Applied if IDataLabelFormat.ShowLabelValueFromCell property equals true. | 
| actual_x | Specifies actual x location (left) of the chart element relative to the left top corner of the chart. Call method IChart.ValidateChartLayout() before to get actual values. Read float. | 
| actual_y | Specifies actual top of the chart element relative to the left top corner of the chart. Call method IChart.ValidateChartLayout() before to get actual values. Read float. | 
| actual_width | Specifies actual width of the chart element. Call method IChart.ValidateChartLayout() before to get actual values. Read float. | 
| actual_height | Specifies actual height of the chart element. Call method IChart.ValidateChartLayout() before to get actual values. Read float. | 
| slide | |
| presentation | 
Methods
| Method | Description | 
|---|---|
| hide | Make data label hidden by setting all Show*-flags (ShowValue, …) to false state. IsVisible will be false after this. | 
| get_actual_label_text | Returns actual label text based on DataLabelFormat settings or TextFrameForOverriding.Text value. | 
| add_text_frame_for_overriding | Initialize TextFrameForOverriding with the text in paramener “text”. If TextFrameForOverriding is already initialized then simply changes its text. | 
See Also
- module aspose.slides.charts
- library Aspose.Slides