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

Method xml_bytes

src/pptx/chart/data.py:96–102  ·  view source on GitHub ↗

Return a blob containing the XML for a chart of *chart_type* containing the series in this chart data object, as bytes suitable for writing directly to a file.

(self, chart_type)

Source from the content-addressed store, hash-verified

94 return self._workbook_writer.xlsx_blob
95
96 def xml_bytes(self, chart_type):
97 """
98 Return a blob containing the XML for a chart of *chart_type*
99 containing the series in this chart data object, as bytes suitable
100 for writing directly to a file.
101 """
102 return self._xml(chart_type).encode("utf-8")
103
104 def y_values_ref(self, series):
105 """

Callers 2

newMethod · 0.80

Calls 1

_xmlMethod · 0.95