openpyxl.chart.legend module
- class openpyxl.chart.legend.Legend(legendPos='r', legendEntry=(), layout=None, overlay=None, spPr=None, txPr=None, extLst=None)[source]
Bases:
Serialisable
- extLst
Values must be of type <class ‘openpyxl.descriptors.excel.ExtensionList’>
- graphicalProperties
Values must be of type <class ‘openpyxl.chart.shapes.GraphicalProperties’>
- layout
Values must be of type <class ‘openpyxl.chart.layout.Layout’>
- legendEntry
A sequence (list or tuple) that may only contain objects of the declared type
- legendPos
Value must be one of {‘tr’, ‘r’, ‘t’, ‘l’, ‘b’}
- overlay
Values must be of type <class ‘bool’>
- position
Value must be one of {‘tr’, ‘r’, ‘t’, ‘l’, ‘b’}
- spPr
Values must be of type <class ‘openpyxl.chart.shapes.GraphicalProperties’>
- tagname = 'legend'
- textProperties
Values must be of type <class ‘openpyxl.chart.text.RichText’>
- txPr
Values must be of type <class ‘openpyxl.chart.text.RichText’>
- class openpyxl.chart.legend.LegendEntry(idx=0, delete=False, txPr=None, extLst=None)[source]
Bases:
Serialisable
- delete
Values must be of type <class ‘bool’>
- extLst
Values must be of type <class ‘openpyxl.descriptors.excel.ExtensionList’>
- idx
Values must be of type <class ‘int’>
- tagname = 'legendEntry'
- txPr
Values must be of type <class ‘openpyxl.chart.text.RichText’>