CategorySeriesData
paper-pptx 0.2.0 API reference
The data specific to a particular category 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.
Attributes
categories
attributecategoriesThe data.Categories object that provides access to the category
objects for this series.
categories_ref
attributecategories_refThe Excel worksheet reference to the categories for this chart (not including the column heading).
data_point_offset
attributedata_point_offsetThe integer count of data points that appear in all chart series prior to this one.
index
attributeindexZero-based integer indicating the sequence position of this series in
its chart. For example, the second of three series would return 1.
name
attributenameThe name of this series, e.g. 'Series 1'. This name is used as the column heading for the y-values of this series and may also appear in the chart legend and perhaps other chart locations.
name_ref
attributename_refThe Excel worksheet reference to the cell containing the name for this series.
number_format
attributenumber_formatThe formatting template string that determines how a number in this series is formatted, both in the chart and in the Excel spreadsheet; for example '#,##0.0'. If not specified for this series, it is inherited from the parent chart data object.
values
attributevaluesA sequence containing the (Y) value of each datapoint in this series, in data point order.
values_ref
attributevalues_refThe Excel worksheet reference to the (Y) values for this series (not including the column heading).
x_values
attributex_valuesA sequence containing the X value of each datapoint in this series, in data point order.
x_values_ref
attributex_values_refThe Excel worksheet reference to the X values for this chart (not including the column heading).
y_values
attributey_valuesA sequence containing the Y value of each datapoint in this series, in data point order.
y_values_ref
attributey_values_refThe Excel worksheet reference to the Y values for this chart (not including the column heading).
Functions
__getitem__
func__getitem__(index)paramindex__len__
func__len__()add_data_point
funcadd_data_point(value, number_format=None)Return a CategoryDataPoint object newly created with value value, an optional number_format, and appended to this sequence.
paramvalueparamnumber_format= Noneappend
funcappend(data_point)paramdata_point