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

Method _xml

src/pptx/chart/data.py:119–126  ·  view source on GitHub ↗

Return (as unicode text) the XML for a chart of *chart_type* populated with the values in this chart data object. The XML is a complete XML document, including an XML declaration specifying UTF-8 encoding.

(self, chart_type)

Source from the content-addressed store, hash-verified

117 raise NotImplementedError("must be implemented by all subclasses")
118
119 def _xml(self, chart_type):
120 """
121 Return (as unicode text) the XML for a chart of *chart_type*
122 populated with the values in this chart data object. The XML is
123 a complete XML document, including an XML declaration specifying
124 UTF-8 encoding.
125 """
126 return ChartXmlWriter(chart_type, self).xml
127
128
129class _BaseSeriesData(Sequence):

Callers 1

xml_bytesMethod · 0.95

Calls 1

ChartXmlWriterFunction · 0.90

Tested by

no test coverage detected