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

Class XySeriesData

src/pptx/chart/data.py:743–762  ·  view source on GitHub ↗

The data specific to a particular XY chart series. It provides access to the series label, the series data points, and an optional number format to be applied to each data point not having a specified number format. The sequence of data points in an XY series is significant; lines

Source from the content-addressed store, hash-verified

741
742
743class XySeriesData(_BaseSeriesData):
744 """
745 The data specific to a particular XY chart series. It provides access to
746 the series label, the series data points, and an optional number format
747 to be applied to each data point not having a specified number format.
748
749 The sequence of data points in an XY series is significant; lines are
750 plotted following the sequence of points, even if that causes a line
751 segment to "travel backward" (implying a multi-valued function). The data
752 points are not automatically sorted into increasing order by X value.
753 """
754
755 def add_data_point(self, x, y, number_format=None):
756 """
757 Return an XyDataPoint object newly created with values *x* and *y*,
758 and appended to this sequence.
759 """
760 data_point = XyDataPoint(self, x, y, number_format)
761 self.append(data_point)
762 return data_point
763
764
765class BubbleSeriesData(XySeriesData):

Callers 3

add_seriesMethod · 0.85

Calls

no outgoing calls

Tested by 2

Used in the wild real call sites across dependent graphs

searching dependent graphs…