CT_SeriesComposite
paper-pptx 0.2.0 API reference
<c:ser> custom element class. Note there are several different series
element types in the schema, such as CT_LineSer and CT_BarSer,
but they all share the same tag name. This class acts as a composite and
depends on the caller not to do anything invalid for a series belonging
to a particular plot type.
Attributes
bubbleSize
attributebubbleSize= ZeroOrOne('c:bubbleSize', successors=(_tag_seq[19:]))bubbleSize_ptCount_val
attributebubbleSize_ptCount_valReturn the number of bubble size values as reflected in the val
attribute of ./c:bubbleSize//c:ptCount, or 0 if not present.
cat
attributecat= ZeroOrOne('c:cat', successors=(_tag_seq[13:]))cat_ptCount_val
attributecat_ptCount_valReturn the number of categories as reflected in the val attribute
of ./c:cat//c:ptCount, or 0 if not present.
dLbls
attributedLbls= ZeroOrOne('c:dLbls', successors=(_tag_seq[10:]))dPt
attributedPt= ZeroOrMore('c:dPt', successors=(_tag_seq[9:]))idx
attributeidx= OneAndOnlyOne('c:idx')invertIfNegative
attributeinvertIfNegative= ZeroOrOne('c:invertIfNegative', successors=(_tag_seq[5:]))marker
attributemarker= ZeroOrOne('c:marker', successors=(_tag_seq[7:]))order
attributeorder= OneAndOnlyOne('c:order')smooth
attributesmooth= ZeroOrOne('c:smooth', successors=(_tag_seq[18:]))spPr
attributespPr= ZeroOrOne('c:spPr', successors=(_tag_seq[4:]))tx
attributetx= ZeroOrOne('c:tx', successors=(_tag_seq[3:]))val
attributeval= ZeroOrOne('c:val', successors=(_tag_seq[14:]))xVal
attributexVal= ZeroOrOne('c:xVal', successors=(_tag_seq[15:]))xVal_ptCount_val
attributexVal_ptCount_valReturn the number of X values as reflected in the val attribute of
./c:xVal//c:ptCount, or 0 if not present.
xml
attributexmlstrXML string for this element, suitable for testing purposes.
Pretty printed for readability and without an XML declaration at the top.
yVal
attributeyVal= ZeroOrOne('c:yVal', successors=(_tag_seq[16:]))yVal_ptCount_val
attributeyVal_ptCount_valReturn the number of Y values as reflected in the val attribute of
./c:yVal//c:ptCount, or 0 if not present.
Functions
first_child_found_in
funcfirst_child_found_in(*tagnames: str) -> _Element | NoneFirst child with tag in tagnames, or None if not found.
paramtagnamesstr= ()Returns
lxml.etree._Element | Noneget_dLbl
funcget_dLbl(idx)Return the c:dLbl element representing the label for the data point
at offset idx in this series, or None if not present.
paramidxget_or_add_dLbl
funcget_or_add_dLbl(idx)Return the c:dLbl element representing the label of the point at
offset idx in this series, newly created if not yet present.
paramidxget_or_add_dPt_for_point
funcget_or_add_dPt_for_point(idx)Return the c:dPt child representing the visual properties of the
data point at index idx.
paramidxinsert_element_before
funcinsert_element_before(elm: ElementBase, *tagnames: str)paramelmElementBaseparamtagnamesstr= ()remove_all
funcremove_all(*tagnames: str) -> NoneRemove child elements with tagname (e.g. "a:p") in tagnames.
paramtagnamesstr= ()Returns
Nonexpath
funcxpath(xpath_str: str) -> AnyOverride of lxml _Element.xpath() method.
Provides standard Open XML namespace mapping (nsmap) in centralized location.
paramxpath_strstrReturns
typing.Any