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

Method x_values_ref

src/pptx/chart/xlsx.py:202–209  ·  view source on GitHub ↗

The Excel worksheet reference to the X values for this chart (not including the column label).

(self, series)

Source from the content-addressed store, hash-verified

200 return title_and_spacer_rows + data_point_rows
201
202 def x_values_ref(self, series):
203 """
204 The Excel worksheet reference to the X values for this chart (not
205 including the column label).
206 """
207 top_row = self.series_table_row_offset(series) + 2
208 bottom_row = top_row + len(series) - 1
209 return "Sheet1!$A$%d:$A$%d" % (top_row, bottom_row)
210
211 def y_values_ref(self, series):
212 """

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected