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

Method _ser_xml

src/pptx/chart/xmlwriter.py:423–444  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

421
422 @property
423 def _ser_xml(self):
424 xml = ""
425 for series in self._chart_data:
426 xml_writer = _CategorySeriesXmlWriter(series)
427 xml += (
428 " <c:ser>\n"
429 ' <c:idx val="{ser_idx}"/>\n'
430 ' <c:order val="{ser_order}"/>\n'
431 "{tx_xml}"
432 "{cat_xml}"
433 "{val_xml}"
434 " </c:ser>\n"
435 ).format(
436 **{
437 "ser_idx": series.index,
438 "ser_order": series.index,
439 "tx_xml": xml_writer.tx_xml,
440 "cat_xml": xml_writer.cat_xml,
441 "val_xml": xml_writer.val_xml,
442 }
443 )
444 return xml
445
446
447class _BarChartXmlWriter(_BaseChartXmlWriter):

Callers

nothing calls this directly

Calls 2

formatMethod · 0.45

Tested by

no test coverage detected