1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
| # Copyright (c) 2010-2024 openpyxl
|
| from openpyxl.descriptors.serialisable import Serialisable
| from openpyxl.descriptors import (
| Typed,
| Alias,
| )
|
| from openpyxl.descriptors.excel import(
| ExtensionList,
| _explicit_none,
| )
|
| from openpyxl.descriptors.nested import (
| NestedBool,
| NestedInteger,
| NestedMinMax,
| NestedNoneSet,
| )
|
| from .layout import Layout
| from .picture import PictureOptions
| from .shapes import *
| from .text import *
| from .error_bar import *
|
|
| class Marker(Serialisable):
|
| tagname = "marker"
|
| symbol = NestedNoneSet(values=(['circle', 'dash', 'diamond', 'dot', 'picture',
| 'plus', 'square', 'star', 'triangle', 'x', 'auto']),
| to_tree=_explicit_none)
| size = NestedMinMax(min=2, max=72, allow_none=True)
| spPr = Typed(expected_type=GraphicalProperties, allow_none=True)
| graphicalProperties = Alias('spPr')
| extLst = Typed(expected_type=ExtensionList, allow_none=True)
|
| __elements__ = ('symbol', 'size', 'spPr')
|
| def __init__(self,
| symbol=None,
| size=None,
| spPr=None,
| extLst=None,
| ):
| self.symbol = symbol
| self.size = size
| if spPr is None:
| spPr = GraphicalProperties()
| self.spPr = spPr
|
|
| class DataPoint(Serialisable):
|
| tagname = "dPt"
|
| idx = NestedInteger()
| invertIfNegative = NestedBool(allow_none=True)
| marker = Typed(expected_type=Marker, allow_none=True)
| bubble3D = NestedBool(allow_none=True)
| explosion = NestedInteger(allow_none=True)
| spPr = Typed(expected_type=GraphicalProperties, allow_none=True)
| graphicalProperties = Alias('spPr')
| pictureOptions = Typed(expected_type=PictureOptions, allow_none=True)
| extLst = Typed(expected_type=ExtensionList, allow_none=True)
|
| __elements__ = ('idx', 'invertIfNegative', 'marker', 'bubble3D',
| 'explosion', 'spPr', 'pictureOptions')
|
| def __init__(self,
| idx=None,
| invertIfNegative=None,
| marker=None,
| bubble3D=None,
| explosion=None,
| spPr=None,
| pictureOptions=None,
| extLst=None,
| ):
| self.idx = idx
| self.invertIfNegative = invertIfNegative
| self.marker = marker
| self.bubble3D = bubble3D
| self.explosion = explosion
| if spPr is None:
| spPr = GraphicalProperties()
| self.spPr = spPr
| self.pictureOptions = pictureOptions
|
|