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

Method add_series

src/pptx/chart/data.py:691–699  ·  view source on GitHub ↗

Return an |XySeriesData| object newly created and added at the end of this sequence, identified by *name* and values formatted with *number_format*.

(self, name, number_format=None)

Source from the content-addressed store, hash-verified

689 """
690
691 def add_series(self, name, number_format=None):
692 """
693 Return an |XySeriesData| object newly created and added at the end of
694 this sequence, identified by *name* and values formatted with
695 *number_format*.
696 """
697 series_data = XySeriesData(self, name, number_format)
698 self.append(series_data)
699 return series_data
700
701 @lazyproperty
702 def _workbook_writer(self):

Calls 2

XySeriesDataClass · 0.85
appendMethod · 0.45

Tested by 8

populate_fixtureMethod · 0.76
xVal_fixtureMethod · 0.76
yVal_fixtureMethod · 0.76
rewrite_fixtureMethod · 0.76
make_xy_chart_dataFunction · 0.76
it_can_add_a_seriesMethod · 0.36
it_can_add_a_seriesMethod · 0.36
it_can_add_a_seriesMethod · 0.36