Paper Office
paper-xlsxAPI referencechart.pie_chart

ProjectedPieChart

paper-xlsx 0.2.1 API reference

From the spec 21.2.2.126

This element contains the pie of pie or bar of pie series on this chart. Only the first series shall be displayed. The splitType element shall determine whether the splitPos and custSplit elements apply.

ProjectedPieChart(ofPieType='pie', gapWidth=None, splitType='auto', splitPos=None, custSplit=None, secondPieSize=75, serLines=None, extLst=None, **kw)

Attributes

anchor

attributeanchor
= 'E15'

axId

attributeaxId
= axId

custSplit

attributecustSplit
= custSplit

dLbls

attributedLbls
= _PieChartBase.dLbls

dataLabels

attributedataLabels
= Alias('dLbls')

display_blanks

attributedisplay_blanks
= 'gap'

extLst

attributeextLst
= Typed(expected_type=ExtensionList, allow_none=True)

gapWidth

attributegapWidth
= gapWidth

graphical_properties

attributegraphical_properties
= None

height

attributeheight
= 7.5

idx_base

attributeidx_base
= 0

join_lines

attributejoin_lines
= Alias('serLines')

layout

attributelayout
= None

legend

attributelegend
= Legend()

mime_type

attributemime_type
= 'application/vnd.openxmlformats-officedocument.drawingml.chart+xml'

namespace

attributenamespace
= None

ofPieType

attributeofPieType
= ofPieType

path

attributepath

pivotFormats

attributepivotFormats
= ()

pivotSource

attributepivotSource
= None

plot_area

attributeplot_area
= PlotArea()

roundedCorners

attributeroundedCorners
= None

secondPieSize

attributesecondPieSize
= secondPieSize

ser

attributeser
= _PieChartBase.ser

serLines

attributeserLines
= Typed(expected_type=ChartLines, allow_none=True)

series

attributeseries
= Alias('ser')

splitPos

attributesplitPos
= splitPos

splitType

attributesplitType
= splitType

style

attributestyle
= None

tagname

attributetagname
= 'ofPieChart'

title

attributetitle
= None

type

attributetype
= Alias('ofPieType')

varyColors

attributevaryColors
= _PieChartBase.varyColors

visible_cells_only

attributevisible_cells_only
= True

width

attributewidth
= 15

Functions

__iter__

func__iter__()

add_data

funcadd_data(data, from_rows=False, titles_from_data=False)

Add a range of data in a single pass. The default is to treat each column as a data series.

paramdata
paramfrom_rows
= False
paramtitles_from_data
= False

append

funcappend(value)

Append a data series to the chart

paramvalue

from_tree

funcfrom_tree(node)

Create object from XML

paramnode

repoint

funcrepoint(series_index, new_range)

Point a series' VALUES at new_range — "the chart now covers Q1-Q4" (paper-xlsx). new_range must be a sheet-qualified single-area range like "'Data'!$B$2:$B$13"; it is validated here, and under preserve mode the save expresses the change as a byte patch of the chart's <c:f> text.

paramseries_index
paramnew_range

set_categories

funcset_categories(labels)

Set the categories / x-axis values

paramlabels

to_tree

functo_tree(namespace=None, tagname=None, idx=None)
paramnamespace
= None
paramtagname
= None
paramidx
= None

On this page