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

Method xml

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

Source from the content-addressed store, hash-verified

645
646 @property
647 def xml(self):
648 return (
649 "<?xml version='1.0' encoding='UTF-8' standalone='yes'?>\n"
650 '<c:chartSpace xmlns:c="http://schemas.openxmlformats.org/drawin'
651 'gml/2006/chart" xmlns:a="http://schemas.openxmlformats.org/draw'
652 'ingml/2006/main" xmlns:r="http://schemas.openxmlformats.org/off'
653 'iceDocument/2006/relationships">\n'
654 ' <c:date1904 val="0"/>\n'
655 ' <c:roundedCorners val="0"/>\n'
656 " <c:chart>\n"
657 ' <c:autoTitleDeleted val="0"/>\n'
658 " <c:plotArea>\n"
659 " <c:layout/>\n"
660 " <c:doughnutChart>\n"
661 ' <c:varyColors val="1"/>\n'
662 "{ser_xml}"
663 " <c:dLbls>\n"
664 ' <c:showLegendKey val="0"/>\n'
665 ' <c:showVal val="0"/>\n'
666 ' <c:showCatName val="0"/>\n'
667 ' <c:showSerName val="0"/>\n'
668 ' <c:showPercent val="0"/>\n'
669 ' <c:showBubbleSize val="0"/>\n'
670 ' <c:showLeaderLines val="1"/>\n'
671 " </c:dLbls>\n"
672 ' <c:firstSliceAng val="0"/>\n'
673 ' <c:holeSize val="50"/>\n'
674 " </c:doughnutChart>\n"
675 " </c:plotArea>\n"
676 " <c:legend>\n"
677 ' <c:legendPos val="r"/>\n'
678 " <c:layout/>\n"
679 ' <c:overlay val="0"/>\n'
680 " </c:legend>\n"
681 ' <c:plotVisOnly val="1"/>\n'
682 ' <c:dispBlanksAs val="gap"/>\n'
683 ' <c:showDLblsOverMax val="0"/>\n'
684 " </c:chart>\n"
685 " <c:txPr>\n"
686 " <a:bodyPr/>\n"
687 " <a:lstStyle/>\n"
688 " <a:p>\n"
689 " <a:pPr>\n"
690 ' <a:defRPr sz="1800"/>\n'
691 " </a:pPr>\n"
692 " <a:endParaRPr/>\n"
693 " </a:p>\n"
694 " </c:txPr>\n"
695 "</c:chartSpace>\n"
696 ).format(**{"ser_xml": self._ser_xml})
697
698 @property
699 def _explosion_xml(self):

Callers

nothing calls this directly

Calls 1

formatMethod · 0.45

Tested by

no test coverage detected