MCPcopy Create free account
hub / github.com/scanny/python-pptx / new_chart

Method new_chart

src/pptx/oxml/chart/chart.py:70–72  ·  view source on GitHub ↗

Return a new `c:chart` element.

(rId: str)

Source from the content-addressed store, hash-verified

68
69 @staticmethod
70 def new_chart(rId: str) -> CT_Chart:
71 """Return a new `c:chart` element."""
72 return cast(CT_Chart, parse_xml(f'<c:chart {nsdecls("c")} {nsdecls("r")} r:id="{rId}"/>'))
73
74 def _new_title(self):
75 return CT_Title.new_title()

Callers 1

Calls 2

parse_xmlFunction · 0.90
nsdeclsFunction · 0.90

Tested by

no test coverage detected