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

Method data_point_offset

src/pptx/chart/data.py:42–52  ·  view source on GitHub ↗

The total integer number of data points appearing in the series of this chart that are prior to *series* in this sequence.

(self, series)

Source from the content-addressed store, hash-verified

40 return self._series.append(series)
41
42 def data_point_offset(self, series):
43 """
44 The total integer number of data points appearing in the series of
45 this chart that are prior to *series* in this sequence.
46 """
47 count = 0
48 for this_series in self:
49 if series is this_series:
50 return count
51 count += len(this_series)
52 raise ValueError("series not in chart data object")
53
54 @property
55 def number_format(self):

Callers 1

data_point_offsetMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected