openpyxl.chart.pie图表模块

class openpyxl.chart.pie_chart.CustomSplit(secondPiePt=())[源代码]

基类:openpyxl.descriptors.serialisable.Serialisable

secondPiePt

作为单个属性存储的基元类型序列。”“val”是默认属性

tagname = 'custSplit'
class openpyxl.chart.pie_chart.DoughnutChart(firstSliceAng=0, holeSize=10, extLst=None, **kw)[源代码]

基类:openpyxl.chart.pie_chart._PieChartBase

dLbls

值的类型必须为<class'openpyxl.chart.label.datalabellist'>

extLst

值的类型必须为<class'openpyxl.descriptors.excel.extensionList'>

firstSliceAng

值的类型必须小于class“float”>

holeSize

值的类型必须小于class“float”>

ser

只能包含声明类型的对象的序列(列表或元组)

tagname = 'doughnutChart'
varyColors

值的类型必须小于class'bool'>

class openpyxl.chart.pie_chart.PieChart(firstSliceAng=0, extLst=None, **kw)[源代码]

基类:openpyxl.chart.pie_chart._PieChartBase

dLbls

值的类型必须为<class'openpyxl.chart.label.datalabellist'>

extLst

值的类型必须为<class'openpyxl.descriptors.excel.extensionList'>

firstSliceAng

值的类型必须小于class“float”>

ser

只能包含声明类型的对象的序列(列表或元组)

tagname = 'pieChart'
varyColors

值的类型必须小于class'bool'>

class openpyxl.chart.pie_chart.PieChart3D(varyColors=True, ser=(), dLbls=None)[源代码]

基类:openpyxl.chart.pie_chart._PieChartBase

dLbls

值的类型必须为<class'openpyxl.chart.label.datalabellist'>

extLst

值的类型必须为<class'openpyxl.descriptors.excel.extensionList'>

ser

只能包含声明类型的对象的序列(列表或元组)

tagname = 'pie3DChart'
varyColors

值的类型必须小于class'bool'>

class openpyxl.chart.pie_chart.ProjectedPieChart(ofPieType='pie', gapWidth=None, splitType='auto', splitPos=None, custSplit=None, secondPieSize=75, serLines=None, extLst=None, **kw)[源代码]

基类:openpyxl.chart.pie_chart._PieChartBase

根据规范21.2.2.126

此元素包含此图表上饼图的饼图或饼图系列的条形图。只能显示第一个系列。splittype元素应确定splitpos和custspilit元素是否适用。

custSplit

值的类型必须为<class'openpyxl.chart.pie_chart.customspit'>

dLbls

值的类型必须为<class'openpyxl.chart.label.datalabellist'>

extLst

值的类型必须为<class'openpyxl.descriptors.excel.extensionList'>

gapWidth

值的类型必须小于class“float”>

join_lines

在python中不允许或混淆所需的属性名(例如“type”)或需要更具描述性的名称(例如“u”的“underline”)时,可以使用别名。

ofPieType

值必须是{‘bar’,‘派’}中的一个

secondPieSize

值的类型必须小于class“float”>

ser

只能包含声明类型的对象的序列(列表或元组)

serLines

值的类型必须小于class“openpyxl.chart.axis.chartlines”>

splitPos

值的类型必须小于class“float”>

splitType

Value must be one of {'val', 'cust', 'percent', 'auto', 'pos'}

tagname = 'ofPieChart'
type

在python中不允许或混淆所需的属性名(例如“type”)或需要更具描述性的名称(例如“u”的“underline”)时,可以使用别名。

varyColors

值的类型必须小于class'bool'>