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

Method numRef_xml

src/pptx/chart/xmlwriter.py:118–132  ·  view source on GitHub ↗

Return the `` `` element specified by the parameters as unicode text.

(self, wksht_ref, number_format, values)

Source from the content-addressed store, hash-verified

116 return escape(self._series.name)
117
118 def numRef_xml(self, wksht_ref, number_format, values):
119 """
120 Return the ``<c:numRef>`` element specified by the parameters as
121 unicode text.
122 """
123 pt_xml = self.pt_xml(values)
124 return (
125 " <c:numRef>\n"
126 " <c:f>{wksht_ref}</c:f>\n"
127 " <c:numCache>\n"
128 " <c:formatCode>{number_format}</c:formatCode>\n"
129 "{pt_xml}"
130 " </c:numCache>\n"
131 " </c:numRef>\n"
132 ).format(**{"wksht_ref": wksht_ref, "number_format": number_format, "pt_xml": pt_xml})
133
134 def pt_xml(self, values):
135 """

Callers 6

xValMethod · 0.80
xVal_xmlMethod · 0.80
yValMethod · 0.80
yVal_xmlMethod · 0.80
bubbleSizeMethod · 0.80
bubbleSize_xmlMethod · 0.80

Calls 2

pt_xmlMethod · 0.95
formatMethod · 0.45

Tested by

no test coverage detected