CT_ChartSpace
paper-pptx 0.2.0 API reference
c:chartSpace root element of a chart part.
Attributes
catAx_lst
attributecatAx_lstchart
attributechart= OneAndOnlyOne('c:chart')date1904
attributedate1904= ZeroOrOne('c:date1904', successors=(_tag_seq[1:]))dateAx_lst
attributedateAx_lstdate_1904
attributedate_1904Return True if the c:date1904 child element resolves truthy,
False otherwise. This value indicates whether date number values
are based on the 1900 or 1904 epoch.
externalData
attributeexternalData= ZeroOrOne('c:externalData', successors=(_tag_seq[11:]))plotArea
attributeplotAreaReturn the required c:chartSpace/c:chart/c:plotArea grandchild
element.
style
attributestyle= ZeroOrOne('c:style', successors=(_tag_seq[4:]))txPr
attributetxPr= ZeroOrOne('c:txPr', successors=(_tag_seq[10:]))valAx_lst
attributevalAx_lstxlsx_part_rId
attributexlsx_part_rIdThe string in the required r:id attribute of the
<c:externalData> child, or None if no externalData element is
present.
xml
attributexmlstrXML 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 | NoneFirst child with tag in tagnames, or None if not found.
paramtagnamesstr= ()Returns
lxml.etree._Element | Noneget_or_add_title
funcget_or_add_title()Return the c:title grandchild, newly created if not present.
insert_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