Paper Office
paper-pptxAPI referencechart.datalabel

DataLabel

paper-pptx 0.2.0 API reference

The data label associated with an individual data point.

DataLabel(ser, idx)

Attributes

font

attributefont

The Font object providing text formatting for this data label.

This font object is used to customize the appearance of automatically inserted text, such as the data point value. The font applies to the entire data label. More granular control of the appearance of custom data label text is controlled by a font object on runs in the text frame.

has_text_frame

attributehas_text_frame

Return True if this data label has a text frame (implying it has custom data label text), and False otherwise. Assigning True causes a text frame to be added if not already present. Assigning False causes any existing text frame to be removed along with any text contained in the text frame.

position

attributeposition

Read/write :ref:XlDataLabelPosition member specifying the position of this data label with respect to its data point, or None if no position is specified. Assigning None causes PowerPoint to choose the default position, which varies by chart type.

text_frame

attributetext_frame

TextFrame instance for this data label, containing the text of the data label and providing access to its text formatting properties.

On this page