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

Method iter_xCharts

src/pptx/oxml/chart/chart.py:194–220  ·  view source on GitHub ↗

Generate each xChart child element in document.

(self)

Source from the content-addressed store, hash-verified

192 yield ser
193
194 def iter_xCharts(self):
195 """
196 Generate each xChart child element in document.
197 """
198 plot_tags = (
199 qn("c:area3DChart"),
200 qn("c:areaChart"),
201 qn("c:bar3DChart"),
202 qn("c:barChart"),
203 qn("c:bubbleChart"),
204 qn("c:doughnutChart"),
205 qn("c:line3DChart"),
206 qn("c:lineChart"),
207 qn("c:ofPieChart"),
208 qn("c:pie3DChart"),
209 qn("c:pieChart"),
210 qn("c:radarChart"),
211 qn("c:scatterChart"),
212 qn("c:stockChart"),
213 qn("c:surface3DChart"),
214 qn("c:surfaceChart"),
215 )
216
217 for child in self.iterchildren():
218 if child.tag not in plot_tags:
219 continue
220 yield child
221
222 @property
223 def last_ser(self):

Callers 3

iter_sersMethod · 0.95
xChartsMethod · 0.95
_trim_ser_count_byMethod · 0.80

Calls 1

qnFunction · 0.90

Tested by

no test coverage detected