Paper Office
paper-pptxAPI referenceoxml.chart.series

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_val

Return 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_val

Return 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_val

Return the number of X values as reflected in the val attribute of ./c:xVal//c:ptCount, or 0 if not present.

xml

attributexmlstr

XML 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_val

Return 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 | None

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

paramtagnamesstr
= ()

Returns

lxml.etree._Element | None

get_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.

paramidx

get_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.

paramidx

get_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.

paramidx

insert_element_before

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

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