Paper Office
paper-pptxAPI referenceoxml.chart.chart

CT_ChartSpace

paper-pptx 0.2.0 API reference

c:chartSpace root element of a chart part.

Attributes

catAx_lst

attributecatAx_lst

chart

attributechart
= OneAndOnlyOne('c:chart')

date1904

attributedate1904
= ZeroOrOne('c:date1904', successors=(_tag_seq[1:]))

dateAx_lst

attributedateAx_lst

date_1904

attributedate_1904

Return 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

attributeplotArea

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

xlsx_part_rId

attributexlsx_part_rId

The string in the required r:id attribute of the <c:externalData> child, or None if no externalData element is present.

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_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)
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