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

Class XyChartData

src/pptx/chart/data.py:684–707  ·  view source on GitHub ↗

A specialized ChartData object suitable for use with an XY (aka. scatter) chart. Unlike ChartData, it has no category sequence. Rather, each data point of each series specifies both an X and a Y value.

Source from the content-addressed store, hash-verified

682
683
684class XyChartData(_BaseChartData):
685 """
686 A specialized ChartData object suitable for use with an XY (aka. scatter)
687 chart. Unlike ChartData, it has no category sequence. Rather, each data
688 point of each series specifies both an X and a Y value.
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):
703 """
704 The worksheet writer object to which layout and writing of the Excel
705 worksheet for this chart will be delegated.
706 """
707 return XyWorkbookWriter(self)
708
709
710class BubbleChartData(XyChartData):

Calls

no outgoing calls

Tested by 7

populate_fixtureMethod · 0.72
xVal_fixtureMethod · 0.72
yVal_fixtureMethod · 0.72
rewrite_fixtureMethod · 0.72
make_xy_chart_dataFunction · 0.72
add_series_fixtureMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…