Paper Office
paper-pptxAPI referencechart.data

XyChartData

paper-pptx 0.2.0 API reference

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.

Attributes

number_format

attributenumber_format

The formatting template string, e.g. '#,##0.0', that determines how X and Y values are formatted in this chart and in the Excel spreadsheet. A number format specified on a series will override this value for that series. Likewise, a distinct number format can be specified for a particular data point within a series.

xlsx_blob

attributexlsx_blob

Return a blob containing an Excel workbook file populated with the contents of this chart data object.

Functions

__getitem__

func__getitem__(index)
paramindex

__len__

func__len__()

add_series

funcadd_series(name, number_format=None)

Return an XySeriesData object newly created and added at the end of this sequence, identified by name and values formatted with number_format.

paramname
paramnumber_format
= None

append

funcappend(series)
paramseries

data_point_offset

funcdata_point_offset(series)

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

paramseries

series_index

funcseries_index(series)

Return the integer index of series in this sequence.

paramseries

series_name_ref

funcseries_name_ref(series)

Return the Excel worksheet reference to the cell containing the name for series.

paramseries

x_values_ref

funcx_values_ref(series)

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

paramseries

xml_bytes

funcxml_bytes(chart_type)

Return a blob containing the XML for a chart of chart_type containing the series in this chart data object, as bytes suitable for writing directly to a file.

paramchart_type

y_values_ref

funcy_values_ref(series)

The Excel worksheet reference to the Y values for series (not including the column label).

paramseries

On this page