Paper Office
paper-pptxAPI referenceoxml.chart.datalabel

CT_DLbls

paper-pptx 0.2.0 API reference

c:dLbls element specifying properties for a set of data labels.

Attributes

dLbl

attributedLbl
= ZeroOrMore('c:dLbl', successors=(_tag_seq[1:]))

dLblPos

attributedLblPos
= ZeroOrOne('c:dLblPos', successors=(_tag_seq[5:]))

defRPr

attributedefRPr

<a:defRPr> great-great-grandchild element, added with its ancestors if not present.

numFmt

attributenumFmt
= ZeroOrOne('c:numFmt', successors=(_tag_seq[2:]))

showCatName

attributeshowCatName
= ZeroOrOne('c:showCatName', successors=(_tag_seq[8:]))

showLegendKey

attributeshowLegendKey
= ZeroOrOne('c:showLegendKey', successors=(_tag_seq[6:]))

showPercent

attributeshowPercent
= ZeroOrOne('c:showPercent', successors=(_tag_seq[10:]))

showSerName

attributeshowSerName
= ZeroOrOne('c:showSerName', successors=(_tag_seq[9:]))

showVal

attributeshowVal
= ZeroOrOne('c:showVal', successors=(_tag_seq[7:]))

txPr

attributetxPr
= ZeroOrOne('c:txPr', successors=(_tag_seq[4:]))

xml

attributexmlstr

XML string for this element, suitable for testing purposes.

Pretty printed for readability and without an XML declaration at the top.

Functions

first_child_found_in

funcfirst_child_found_in(*tagnames: str) -> _Element | None

First child with tag in tagnames, or None if not found.

paramtagnamesstr
= ()

Returns

lxml.etree._Element | None

get_dLbl_for_point

funcget_dLbl_for_point(idx)

Return the c:dLbl child representing the label for the data point at index idx.

paramidx

get_or_add_dLbl_for_point

funcget_or_add_dLbl_for_point(idx)

Return the c:dLbl element representing the label of the point at index idx.

paramidx

insert_element_before

funcinsert_element_before(elm: ElementBase, *tagnames: str)
paramelmElementBase
paramtagnamesstr
= ()

new_dLbls

funcnew_dLbls()

Return a newly created "loose" c:dLbls element.

remove_all

funcremove_all(*tagnames: str) -> None

Remove child elements with tagname (e.g. "a:p") in tagnames.

paramtagnamesstr
= ()

Returns

None

xpath

funcxpath(xpath_str: str) -> Any

Override of lxml _Element.xpath() method.

Provides standard Open XML namespace mapping (nsmap) in centralized location.

paramxpath_strstr

Returns

typing.Any

On this page