DataLabelCollection

DataLabelCollection

Overview

DataLabelCollection is a class in Aspose.Slides FOSS for Python. Inherits from: IDataLabelCollection.

Represents the labels of a chart series.

This class declares 6 methods for DataLabelCollection objects in Python programs. Available methods include: __getitem__, __iter__, __len__, hide, index_of. Public members are accessible to any Python application after installing the Aspose.Slides FOSS for Python package. Properties: as_i_presentation_component, as_i_slide_component, chart, count, count_of_visible_data_labels, default_data_label_format, and 5 more.

Properties

NameTypeAccessDescription
chart``ReadReturns the parent chart.
slide``ReadGets the slide.
presentation``ReadGets the presentation.
parent_series'IChartSeries'ReadReturns the parent series.
countintReadTotal number of data points in the parent series (each may have a label).
count_of_visible_data_labelsintReadNumber of labels that would render text.
is_visibleboolReadTrue if any show_* flag is enabled on the collection default format.
default_data_label_format'IDataLabelFormat'ReadDefault format for all data labels in the collection.
leader_lines_format'IChartLinesFormat'ReadLeader lines line/effect format.
as_i_slide_componentISlideComponentReadAllows to get base ISlideComponent interface.
as_i_presentation_componentIPresentationComponentReadGets the as i presentation component.

Methods

SignatureDescription
hide()Hide all labels — sets <c:delete val=‘1’/> on <c:dLbls>.
index_of(value: 'DataLabel') → intIndex of the provided DataLabel in this collection.
__len__() → intCalls len on this DataLabelCollection instance.
__iter__() → Iterator['DataLabel']Calls iter on this DataLabelCollection instance.
__getitem__(index: int) → 'DataLabel'Calls getitem(index) on this DataLabelCollection instance.
index_of(value) → intReturns the zero‑based index of the specified DataLabel

See Also

 English