python-pptx2 2.13.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pptx2/__init__.py +152 -0
- pptx2/_color.py +75 -0
- pptx2/_slide_importer.py +597 -0
- pptx2/_svg.py +155 -0
- pptx2/_template_applier.py +292 -0
- pptx2/_textstyle.py +187 -0
- pptx2/accessibility.py +365 -0
- pptx2/action.py +270 -0
- pptx2/animation.py +2237 -0
- pptx2/api.py +49 -0
- pptx2/audit.py +258 -0
- pptx2/chart/__init__.py +0 -0
- pptx2/chart/analytics.py +381 -0
- pptx2/chart/axis.py +543 -0
- pptx2/chart/category.py +200 -0
- pptx2/chart/chart.py +670 -0
- pptx2/chart/data.py +864 -0
- pptx2/chart/datalabel.py +406 -0
- pptx2/chart/legend.py +86 -0
- pptx2/chart/marker.py +70 -0
- pptx2/chart/palettes.py +129 -0
- pptx2/chart/plot.py +462 -0
- pptx2/chart/point.py +101 -0
- pptx2/chart/quick_layouts.py +325 -0
- pptx2/chart/series.py +334 -0
- pptx2/chart/xlsx.py +272 -0
- pptx2/chart/xmlwriter.py +1845 -0
- pptx2/compose/__init__.py +28 -0
- pptx2/compose/from_spec.py +1094 -0
- pptx2/design/__init__.py +8 -0
- pptx2/design/components.py +607 -0
- pptx2/design/figures.py +389 -0
- pptx2/design/layout.py +370 -0
- pptx2/design/recipes.py +1967 -0
- pptx2/design/style.py +209 -0
- pptx2/design/tokens.py +915 -0
- pptx2/diagrams.py +754 -0
- pptx2/dml/__init__.py +0 -0
- pptx2/dml/chtfmt.py +40 -0
- pptx2/dml/color.py +496 -0
- pptx2/dml/effect.py +909 -0
- pptx2/dml/fill.py +691 -0
- pptx2/dml/line.py +287 -0
- pptx2/dml/picture.py +212 -0
- pptx2/dml/three_d.py +381 -0
- pptx2/enum/__init__.py +0 -0
- pptx2/enum/action.py +71 -0
- pptx2/enum/animation.py +31 -0
- pptx2/enum/base.py +218 -0
- pptx2/enum/chart.py +574 -0
- pptx2/enum/dml.py +740 -0
- pptx2/enum/lang.py +685 -0
- pptx2/enum/presentation.py +133 -0
- pptx2/enum/shapes.py +1029 -0
- pptx2/enum/text.py +230 -0
- pptx2/exc.py +42 -0
- pptx2/formats.py +139 -0
- pptx2/geometry.py +420 -0
- pptx2/inherit.py +109 -0
- pptx2/lint.py +2256 -0
- pptx2/math.py +177 -0
- pptx2/media.py +197 -0
- pptx2/opc/__init__.py +0 -0
- pptx2/opc/constants.py +332 -0
- pptx2/opc/oxml.py +188 -0
- pptx2/opc/package.py +762 -0
- pptx2/opc/packuri.py +109 -0
- pptx2/opc/serialized.py +296 -0
- pptx2/opc/shared.py +20 -0
- pptx2/opc/spec.py +45 -0
- pptx2/oxml/__init__.py +555 -0
- pptx2/oxml/action.py +53 -0
- pptx2/oxml/chart/__init__.py +0 -0
- pptx2/oxml/chart/axis.py +337 -0
- pptx2/oxml/chart/chart.py +481 -0
- pptx2/oxml/chart/datalabel.py +253 -0
- pptx2/oxml/chart/legend.py +72 -0
- pptx2/oxml/chart/marker.py +61 -0
- pptx2/oxml/chart/plot.py +365 -0
- pptx2/oxml/chart/series.py +425 -0
- pptx2/oxml/chart/shared.py +220 -0
- pptx2/oxml/coreprops.py +288 -0
- pptx2/oxml/dml/__init__.py +0 -0
- pptx2/oxml/dml/color.py +135 -0
- pptx2/oxml/dml/effect.py +213 -0
- pptx2/oxml/dml/fill.py +316 -0
- pptx2/oxml/dml/line.py +12 -0
- pptx2/oxml/dml/three_d.py +110 -0
- pptx2/oxml/ns.py +135 -0
- pptx2/oxml/presentation.py +313 -0
- pptx2/oxml/shapes/__init__.py +19 -0
- pptx2/oxml/shapes/autoshape.py +467 -0
- pptx2/oxml/shapes/connector.py +107 -0
- pptx2/oxml/shapes/graphfrm.py +347 -0
- pptx2/oxml/shapes/groupshape.py +329 -0
- pptx2/oxml/shapes/picture.py +270 -0
- pptx2/oxml/shapes/shared.py +577 -0
- pptx2/oxml/simpletypes.py +1027 -0
- pptx2/oxml/slide.py +563 -0
- pptx2/oxml/table.py +650 -0
- pptx2/oxml/text.py +815 -0
- pptx2/oxml/theme.py +36 -0
- pptx2/oxml/xmlchemy.py +717 -0
- pptx2/package.py +222 -0
- pptx2/parts/__init__.py +0 -0
- pptx2/parts/chart.py +95 -0
- pptx2/parts/coreprops.py +167 -0
- pptx2/parts/diagram.py +37 -0
- pptx2/parts/embeddedpackage.py +93 -0
- pptx2/parts/image.py +275 -0
- pptx2/parts/media.py +37 -0
- pptx2/parts/presentation.py +136 -0
- pptx2/parts/slide.py +371 -0
- pptx2/presentation.py +408 -0
- pptx2/py.typed +0 -0
- pptx2/render.py +586 -0
- pptx2/section.py +272 -0
- pptx2/shapes/__init__.py +26 -0
- pptx2/shapes/autoshape.py +442 -0
- pptx2/shapes/base.py +1078 -0
- pptx2/shapes/connector.py +297 -0
- pptx2/shapes/freeform.py +337 -0
- pptx2/shapes/graphfrm.py +316 -0
- pptx2/shapes/group.py +264 -0
- pptx2/shapes/picture.py +422 -0
- pptx2/shapes/placeholder.py +468 -0
- pptx2/shapes/shapetree.py +2027 -0
- pptx2/shared.py +82 -0
- pptx2/skill/SKILL.md +450 -0
- pptx2/skill/__init__.py +78 -0
- pptx2/skill/__main__.py +64 -0
- pptx2/skill/references/animations.md +189 -0
- pptx2/skill/references/basics.md +421 -0
- pptx2/skill/references/charts.md +254 -0
- pptx2/skill/references/compose.md +234 -0
- pptx2/skill/references/design.md +366 -0
- pptx2/skill/references/effects.md +249 -0
- pptx2/skill/references/end-to-end-deck.md +231 -0
- pptx2/skill/references/geometry-and-arrows.md +334 -0
- pptx2/skill/references/lint.md +275 -0
- pptx2/skill/references/math.md +86 -0
- pptx2/skill/references/picture-effects.md +129 -0
- pptx2/skill/references/render.md +151 -0
- pptx2/skill/references/smart-art.md +75 -0
- pptx2/skill/references/space-aware-authoring.md +249 -0
- pptx2/skill/references/tables.md +244 -0
- pptx2/skill/references/theme.md +127 -0
- pptx2/skill/references/three-d.md +109 -0
- pptx2/skill/references/transitions.md +100 -0
- pptx2/slide.py +1244 -0
- pptx2/smart_art.py +220 -0
- pptx2/spec.py +633 -0
- pptx2/table.py +1181 -0
- pptx2/table_styles.py +184 -0
- pptx2/templates/default.pptx +0 -0
- pptx2/templates/docx-icon.emf +0 -0
- pptx2/templates/generic-icon.emf +0 -0
- pptx2/templates/notes.xml +23 -0
- pptx2/templates/notesMaster.xml +352 -0
- pptx2/templates/pptx-icon.emf +0 -0
- pptx2/templates/theme.xml +321 -0
- pptx2/templates/xlsx-icon.emf +0 -0
- pptx2/text/__init__.py +0 -0
- pptx2/text/fonts.py +482 -0
- pptx2/text/layout.py +374 -0
- pptx2/text/text.py +1272 -0
- pptx2/theme.py +721 -0
- pptx2/types.py +36 -0
- pptx2/util.py +263 -0
- python_pptx2-2.13.0.dist-info/METADATA +351 -0
- python_pptx2-2.13.0.dist-info/RECORD +175 -0
- python_pptx2-2.13.0.dist-info/WHEEL +5 -0
- python_pptx2-2.13.0.dist-info/entry_points.txt +3 -0
- python_pptx2-2.13.0.dist-info/licenses/LICENSE +22 -0
- python_pptx2-2.13.0.dist-info/top_level.txt +1 -0
pptx2/enum/chart.py
ADDED
|
@@ -0,0 +1,574 @@
|
|
|
1
|
+
"""Enumerations used by charts and related objects."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from pptx2.enum.base import BaseEnum, BaseXmlEnum
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class XL_AXIS_CROSSES(BaseXmlEnum):
|
|
9
|
+
"""Specifies the point on an axis where the other axis crosses.
|
|
10
|
+
|
|
11
|
+
Example::
|
|
12
|
+
|
|
13
|
+
from pptx2.enum.chart import XL_AXIS_CROSSES
|
|
14
|
+
|
|
15
|
+
value_axis.crosses = XL_AXIS_CROSSES.MAXIMUM
|
|
16
|
+
|
|
17
|
+
MS API Name: `XlAxisCrosses`
|
|
18
|
+
|
|
19
|
+
https://msdn.microsoft.com/en-us/library/office/ff745402.aspx
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
AUTOMATIC = (-4105, "autoZero", "The axis crossing point is set automatically, often at zero.")
|
|
23
|
+
"""The axis crossing point is set automatically, often at zero."""
|
|
24
|
+
|
|
25
|
+
CUSTOM = (-4114, "", "The .crosses_at property specifies the axis crossing point.")
|
|
26
|
+
"""The .crosses_at property specifies the axis crossing point."""
|
|
27
|
+
|
|
28
|
+
MAXIMUM = (2, "max", "The axis crosses at the maximum value.")
|
|
29
|
+
"""The axis crosses at the maximum value."""
|
|
30
|
+
|
|
31
|
+
MINIMUM = (4, "min", "The axis crosses at the minimum value.")
|
|
32
|
+
"""The axis crosses at the minimum value."""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
class XL_TRENDLINE_TYPE(BaseXmlEnum):
|
|
36
|
+
"""Specifies the type of a chart-series trendline.
|
|
37
|
+
|
|
38
|
+
Example::
|
|
39
|
+
|
|
40
|
+
from pptx2.enum.chart import XL_TRENDLINE_TYPE
|
|
41
|
+
|
|
42
|
+
series.trendlines.add(XL_TRENDLINE_TYPE.LINEAR)
|
|
43
|
+
|
|
44
|
+
The XML values map to the ``val`` attribute of ``<c:trendlineType>``.
|
|
45
|
+
"""
|
|
46
|
+
|
|
47
|
+
EXPONENTIAL = (5, "exp", "An exponential-curve trendline.")
|
|
48
|
+
"""An exponential-curve trendline."""
|
|
49
|
+
|
|
50
|
+
LINEAR = (-4132, "linear", "A straight-line (least-squares) trendline.")
|
|
51
|
+
"""A straight-line (least-squares) trendline."""
|
|
52
|
+
|
|
53
|
+
LOGARITHMIC = (-4133, "log", "A logarithmic-curve trendline.")
|
|
54
|
+
"""A logarithmic-curve trendline."""
|
|
55
|
+
|
|
56
|
+
MOVING_AVERAGE = (6, "movingAvg", "A moving-average trendline.")
|
|
57
|
+
"""A moving-average trendline."""
|
|
58
|
+
|
|
59
|
+
POLYNOMIAL = (3, "poly", "A polynomial-curve trendline.")
|
|
60
|
+
"""A polynomial-curve trendline."""
|
|
61
|
+
|
|
62
|
+
POWER = (4, "power", "A power-curve trendline.")
|
|
63
|
+
"""A power-curve trendline."""
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
class XL_ERROR_BAR_TYPE(BaseXmlEnum):
|
|
67
|
+
"""Specifies the direction error bars extend from a data point.
|
|
68
|
+
|
|
69
|
+
Maps to the ``val`` attribute of ``<c:errBarType>``.
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
BOTH = (9, "both", "Error bars extend in both directions.")
|
|
73
|
+
"""Error bars extend in both directions."""
|
|
74
|
+
|
|
75
|
+
MINUS = (-4115, "minus", "Error bars extend in the minus direction only.")
|
|
76
|
+
"""Error bars extend in the minus direction only."""
|
|
77
|
+
|
|
78
|
+
PLUS = (2, "plus", "Error bars extend in the plus direction only.")
|
|
79
|
+
"""Error bars extend in the plus direction only."""
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
class XL_ERROR_BAR_INCLUDE(BaseXmlEnum):
|
|
83
|
+
"""Specifies how error-bar amounts are calculated.
|
|
84
|
+
|
|
85
|
+
Maps to the ``val`` attribute of ``<c:errValType>``.
|
|
86
|
+
"""
|
|
87
|
+
|
|
88
|
+
CUSTOM = (-4114, "cust", "Error amounts are taken from explicit plus/minus values.")
|
|
89
|
+
"""Error amounts are taken from explicit plus/minus values."""
|
|
90
|
+
|
|
91
|
+
FIXED_VALUE = (1, "fixedVal", "A fixed value is used for the error amount.")
|
|
92
|
+
"""A fixed value is used for the error amount."""
|
|
93
|
+
|
|
94
|
+
PERCENTAGE = (2, "percentage", "A percentage of each value is used for the error amount.")
|
|
95
|
+
"""A percentage of each value is used for the error amount."""
|
|
96
|
+
|
|
97
|
+
STANDARD_DEVIATION = (-4155, "stdDev", "A number of standard deviations is used.")
|
|
98
|
+
"""A number of standard deviations is used."""
|
|
99
|
+
|
|
100
|
+
STANDARD_ERROR = (4, "stdErr", "The standard error is used for the error amount.")
|
|
101
|
+
"""The standard error is used for the error amount."""
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
class XL_ERROR_BAR_DIRECTION(BaseXmlEnum):
|
|
105
|
+
"""Specifies the axis along which error bars are drawn.
|
|
106
|
+
|
|
107
|
+
Maps to the ``val`` attribute of ``<c:errDir>``.
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
X = (-4168, "x", "Error bars are drawn along the X (category/horizontal) axis.")
|
|
111
|
+
"""Error bars are drawn along the X (category/horizontal) axis."""
|
|
112
|
+
|
|
113
|
+
Y = (1, "y", "Error bars are drawn along the Y (value/vertical) axis.")
|
|
114
|
+
"""Error bars are drawn along the Y (value/vertical) axis."""
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
class XL_CATEGORY_TYPE(BaseEnum):
|
|
118
|
+
"""Specifies the type of the category axis.
|
|
119
|
+
|
|
120
|
+
Example::
|
|
121
|
+
|
|
122
|
+
from pptx2.enum.chart import XL_CATEGORY_TYPE
|
|
123
|
+
|
|
124
|
+
date_axis = chart.category_axis
|
|
125
|
+
assert date_axis.category_type == XL_CATEGORY_TYPE.TIME_SCALE
|
|
126
|
+
|
|
127
|
+
MS API Name: `XlCategoryType`
|
|
128
|
+
|
|
129
|
+
https://msdn.microsoft.com/EN-US/library/office/ff746136.aspx
|
|
130
|
+
"""
|
|
131
|
+
|
|
132
|
+
AUTOMATIC_SCALE = (-4105, "The application controls the axis type.")
|
|
133
|
+
"""The application controls the axis type."""
|
|
134
|
+
|
|
135
|
+
CATEGORY_SCALE = (2, "Axis groups data by an arbitrary set of categories")
|
|
136
|
+
"""Axis groups data by an arbitrary set of categories"""
|
|
137
|
+
|
|
138
|
+
TIME_SCALE = (3, "Axis groups data on a time scale of days, months, or years.")
|
|
139
|
+
"""Axis groups data on a time scale of days, months, or years."""
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
class XL_CHART_TYPE(BaseEnum):
|
|
143
|
+
"""Specifies the type of a chart.
|
|
144
|
+
|
|
145
|
+
Example::
|
|
146
|
+
|
|
147
|
+
from pptx2.enum.chart import XL_CHART_TYPE
|
|
148
|
+
|
|
149
|
+
assert chart.chart_type == XL_CHART_TYPE.BAR_STACKED
|
|
150
|
+
|
|
151
|
+
MS API Name: `XlChartType`
|
|
152
|
+
|
|
153
|
+
http://msdn.microsoft.com/en-us/library/office/ff838409.aspx
|
|
154
|
+
"""
|
|
155
|
+
|
|
156
|
+
THREE_D_AREA = (-4098, "3D Area.")
|
|
157
|
+
"""3D Area."""
|
|
158
|
+
|
|
159
|
+
THREE_D_AREA_STACKED = (78, "3D Stacked Area.")
|
|
160
|
+
"""3D Stacked Area."""
|
|
161
|
+
|
|
162
|
+
THREE_D_AREA_STACKED_100 = (79, "100% Stacked Area.")
|
|
163
|
+
"""100% Stacked Area."""
|
|
164
|
+
|
|
165
|
+
THREE_D_BAR_CLUSTERED = (60, "3D Clustered Bar.")
|
|
166
|
+
"""3D Clustered Bar."""
|
|
167
|
+
|
|
168
|
+
THREE_D_BAR_STACKED = (61, "3D Stacked Bar.")
|
|
169
|
+
"""3D Stacked Bar."""
|
|
170
|
+
|
|
171
|
+
THREE_D_BAR_STACKED_100 = (62, "3D 100% Stacked Bar.")
|
|
172
|
+
"""3D 100% Stacked Bar."""
|
|
173
|
+
|
|
174
|
+
THREE_D_COLUMN = (-4100, "3D Column.")
|
|
175
|
+
"""3D Column."""
|
|
176
|
+
|
|
177
|
+
THREE_D_COLUMN_CLUSTERED = (54, "3D Clustered Column.")
|
|
178
|
+
"""3D Clustered Column."""
|
|
179
|
+
|
|
180
|
+
THREE_D_COLUMN_STACKED = (55, "3D Stacked Column.")
|
|
181
|
+
"""3D Stacked Column."""
|
|
182
|
+
|
|
183
|
+
THREE_D_COLUMN_STACKED_100 = (56, "3D 100% Stacked Column.")
|
|
184
|
+
"""3D 100% Stacked Column."""
|
|
185
|
+
|
|
186
|
+
THREE_D_LINE = (-4101, "3D Line.")
|
|
187
|
+
"""3D Line."""
|
|
188
|
+
|
|
189
|
+
THREE_D_PIE = (-4102, "3D Pie.")
|
|
190
|
+
"""3D Pie."""
|
|
191
|
+
|
|
192
|
+
THREE_D_PIE_EXPLODED = (70, "Exploded 3D Pie.")
|
|
193
|
+
"""Exploded 3D Pie."""
|
|
194
|
+
|
|
195
|
+
AREA = (1, "Area")
|
|
196
|
+
"""Area"""
|
|
197
|
+
|
|
198
|
+
AREA_STACKED = (76, "Stacked Area.")
|
|
199
|
+
"""Stacked Area."""
|
|
200
|
+
|
|
201
|
+
AREA_STACKED_100 = (77, "100% Stacked Area.")
|
|
202
|
+
"""100% Stacked Area."""
|
|
203
|
+
|
|
204
|
+
BAR_CLUSTERED = (57, "Clustered Bar.")
|
|
205
|
+
"""Clustered Bar."""
|
|
206
|
+
|
|
207
|
+
BAR_OF_PIE = (71, "Bar of Pie.")
|
|
208
|
+
"""Bar of Pie."""
|
|
209
|
+
|
|
210
|
+
BAR_STACKED = (58, "Stacked Bar.")
|
|
211
|
+
"""Stacked Bar."""
|
|
212
|
+
|
|
213
|
+
BAR_STACKED_100 = (59, "100% Stacked Bar.")
|
|
214
|
+
"""100% Stacked Bar."""
|
|
215
|
+
|
|
216
|
+
BUBBLE = (15, "Bubble.")
|
|
217
|
+
"""Bubble."""
|
|
218
|
+
|
|
219
|
+
BUBBLE_THREE_D_EFFECT = (87, "Bubble with 3D effects.")
|
|
220
|
+
"""Bubble with 3D effects."""
|
|
221
|
+
|
|
222
|
+
COLUMN_CLUSTERED = (51, "Clustered Column.")
|
|
223
|
+
"""Clustered Column."""
|
|
224
|
+
|
|
225
|
+
COLUMN_STACKED = (52, "Stacked Column.")
|
|
226
|
+
"""Stacked Column."""
|
|
227
|
+
|
|
228
|
+
COLUMN_STACKED_100 = (53, "100% Stacked Column.")
|
|
229
|
+
"""100% Stacked Column."""
|
|
230
|
+
|
|
231
|
+
CONE_BAR_CLUSTERED = (102, "Clustered Cone Bar.")
|
|
232
|
+
"""Clustered Cone Bar."""
|
|
233
|
+
|
|
234
|
+
CONE_BAR_STACKED = (103, "Stacked Cone Bar.")
|
|
235
|
+
"""Stacked Cone Bar."""
|
|
236
|
+
|
|
237
|
+
CONE_BAR_STACKED_100 = (104, "100% Stacked Cone Bar.")
|
|
238
|
+
"""100% Stacked Cone Bar."""
|
|
239
|
+
|
|
240
|
+
CONE_COL = (105, "3D Cone Column.")
|
|
241
|
+
"""3D Cone Column."""
|
|
242
|
+
|
|
243
|
+
CONE_COL_CLUSTERED = (99, "Clustered Cone Column.")
|
|
244
|
+
"""Clustered Cone Column."""
|
|
245
|
+
|
|
246
|
+
CONE_COL_STACKED = (100, "Stacked Cone Column.")
|
|
247
|
+
"""Stacked Cone Column."""
|
|
248
|
+
|
|
249
|
+
CONE_COL_STACKED_100 = (101, "100% Stacked Cone Column.")
|
|
250
|
+
"""100% Stacked Cone Column."""
|
|
251
|
+
|
|
252
|
+
CYLINDER_BAR_CLUSTERED = (95, "Clustered Cylinder Bar.")
|
|
253
|
+
"""Clustered Cylinder Bar."""
|
|
254
|
+
|
|
255
|
+
CYLINDER_BAR_STACKED = (96, "Stacked Cylinder Bar.")
|
|
256
|
+
"""Stacked Cylinder Bar."""
|
|
257
|
+
|
|
258
|
+
CYLINDER_BAR_STACKED_100 = (97, "100% Stacked Cylinder Bar.")
|
|
259
|
+
"""100% Stacked Cylinder Bar."""
|
|
260
|
+
|
|
261
|
+
CYLINDER_COL = (98, "3D Cylinder Column.")
|
|
262
|
+
"""3D Cylinder Column."""
|
|
263
|
+
|
|
264
|
+
CYLINDER_COL_CLUSTERED = (92, "Clustered Cone Column.")
|
|
265
|
+
"""Clustered Cone Column."""
|
|
266
|
+
|
|
267
|
+
CYLINDER_COL_STACKED = (93, "Stacked Cone Column.")
|
|
268
|
+
"""Stacked Cone Column."""
|
|
269
|
+
|
|
270
|
+
CYLINDER_COL_STACKED_100 = (94, "100% Stacked Cylinder Column.")
|
|
271
|
+
"""100% Stacked Cylinder Column."""
|
|
272
|
+
|
|
273
|
+
DOUGHNUT = (-4120, "Doughnut.")
|
|
274
|
+
"""Doughnut."""
|
|
275
|
+
|
|
276
|
+
DOUGHNUT_EXPLODED = (80, "Exploded Doughnut.")
|
|
277
|
+
"""Exploded Doughnut."""
|
|
278
|
+
|
|
279
|
+
LINE = (4, "Line.")
|
|
280
|
+
"""Line."""
|
|
281
|
+
|
|
282
|
+
LINE_MARKERS = (65, "Line with Markers.")
|
|
283
|
+
"""Line with Markers."""
|
|
284
|
+
|
|
285
|
+
LINE_MARKERS_STACKED = (66, "Stacked Line with Markers.")
|
|
286
|
+
"""Stacked Line with Markers."""
|
|
287
|
+
|
|
288
|
+
LINE_MARKERS_STACKED_100 = (67, "100% Stacked Line with Markers.")
|
|
289
|
+
"""100% Stacked Line with Markers."""
|
|
290
|
+
|
|
291
|
+
LINE_STACKED = (63, "Stacked Line.")
|
|
292
|
+
"""Stacked Line."""
|
|
293
|
+
|
|
294
|
+
LINE_STACKED_100 = (64, "100% Stacked Line.")
|
|
295
|
+
"""100% Stacked Line."""
|
|
296
|
+
|
|
297
|
+
PIE = (5, "Pie.")
|
|
298
|
+
"""Pie."""
|
|
299
|
+
|
|
300
|
+
PIE_EXPLODED = (69, "Exploded Pie.")
|
|
301
|
+
"""Exploded Pie."""
|
|
302
|
+
|
|
303
|
+
PIE_OF_PIE = (68, "Pie of Pie.")
|
|
304
|
+
"""Pie of Pie."""
|
|
305
|
+
|
|
306
|
+
PYRAMID_BAR_CLUSTERED = (109, "Clustered Pyramid Bar.")
|
|
307
|
+
"""Clustered Pyramid Bar."""
|
|
308
|
+
|
|
309
|
+
PYRAMID_BAR_STACKED = (110, "Stacked Pyramid Bar.")
|
|
310
|
+
"""Stacked Pyramid Bar."""
|
|
311
|
+
|
|
312
|
+
PYRAMID_BAR_STACKED_100 = (111, "100% Stacked Pyramid Bar.")
|
|
313
|
+
"""100% Stacked Pyramid Bar."""
|
|
314
|
+
|
|
315
|
+
PYRAMID_COL = (112, "3D Pyramid Column.")
|
|
316
|
+
"""3D Pyramid Column."""
|
|
317
|
+
|
|
318
|
+
PYRAMID_COL_CLUSTERED = (106, "Clustered Pyramid Column.")
|
|
319
|
+
"""Clustered Pyramid Column."""
|
|
320
|
+
|
|
321
|
+
PYRAMID_COL_STACKED = (107, "Stacked Pyramid Column.")
|
|
322
|
+
"""Stacked Pyramid Column."""
|
|
323
|
+
|
|
324
|
+
PYRAMID_COL_STACKED_100 = (108, "100% Stacked Pyramid Column.")
|
|
325
|
+
"""100% Stacked Pyramid Column."""
|
|
326
|
+
|
|
327
|
+
RADAR = (-4151, "Radar.")
|
|
328
|
+
"""Radar."""
|
|
329
|
+
|
|
330
|
+
RADAR_FILLED = (82, "Filled Radar.")
|
|
331
|
+
"""Filled Radar."""
|
|
332
|
+
|
|
333
|
+
RADAR_MARKERS = (81, "Radar with Data Markers.")
|
|
334
|
+
"""Radar with Data Markers."""
|
|
335
|
+
|
|
336
|
+
STOCK_HLC = (88, "High-Low-Close.")
|
|
337
|
+
"""High-Low-Close."""
|
|
338
|
+
|
|
339
|
+
STOCK_OHLC = (89, "Open-High-Low-Close.")
|
|
340
|
+
"""Open-High-Low-Close."""
|
|
341
|
+
|
|
342
|
+
STOCK_VHLC = (90, "Volume-High-Low-Close.")
|
|
343
|
+
"""Volume-High-Low-Close."""
|
|
344
|
+
|
|
345
|
+
STOCK_VOHLC = (91, "Volume-Open-High-Low-Close.")
|
|
346
|
+
"""Volume-Open-High-Low-Close."""
|
|
347
|
+
|
|
348
|
+
SURFACE = (83, "3D Surface.")
|
|
349
|
+
"""3D Surface."""
|
|
350
|
+
|
|
351
|
+
SURFACE_TOP_VIEW = (85, "Surface (Top View).")
|
|
352
|
+
"""Surface (Top View)."""
|
|
353
|
+
|
|
354
|
+
SURFACE_TOP_VIEW_WIREFRAME = (86, "Surface (Top View wireframe).")
|
|
355
|
+
"""Surface (Top View wireframe)."""
|
|
356
|
+
|
|
357
|
+
SURFACE_WIREFRAME = (84, "3D Surface (wireframe).")
|
|
358
|
+
"""3D Surface (wireframe)."""
|
|
359
|
+
|
|
360
|
+
XY_SCATTER = (-4169, "Scatter.")
|
|
361
|
+
"""Scatter."""
|
|
362
|
+
|
|
363
|
+
XY_SCATTER_LINES = (74, "Scatter with Lines.")
|
|
364
|
+
"""Scatter with Lines."""
|
|
365
|
+
|
|
366
|
+
XY_SCATTER_LINES_NO_MARKERS = (75, "Scatter with Lines and No Data Markers.")
|
|
367
|
+
"""Scatter with Lines and No Data Markers."""
|
|
368
|
+
|
|
369
|
+
XY_SCATTER_SMOOTH = (72, "Scatter with Smoothed Lines.")
|
|
370
|
+
"""Scatter with Smoothed Lines."""
|
|
371
|
+
|
|
372
|
+
XY_SCATTER_SMOOTH_NO_MARKERS = (73, "Scatter with Smoothed Lines and No Data Markers.")
|
|
373
|
+
"""Scatter with Smoothed Lines and No Data Markers."""
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
class XL_DATA_LABEL_POSITION(BaseXmlEnum):
|
|
377
|
+
"""Specifies where the data label is positioned.
|
|
378
|
+
|
|
379
|
+
Example::
|
|
380
|
+
|
|
381
|
+
from pptx2.enum.chart import XL_LABEL_POSITION
|
|
382
|
+
|
|
383
|
+
data_labels = chart.plots[0].data_labels
|
|
384
|
+
data_labels.position = XL_LABEL_POSITION.OUTSIDE_END
|
|
385
|
+
|
|
386
|
+
MS API Name: `XlDataLabelPosition`
|
|
387
|
+
|
|
388
|
+
http://msdn.microsoft.com/en-us/library/office/ff745082.aspx
|
|
389
|
+
"""
|
|
390
|
+
|
|
391
|
+
ABOVE = (0, "t", "The data label is positioned above the data point.")
|
|
392
|
+
"""The data label is positioned above the data point."""
|
|
393
|
+
|
|
394
|
+
BELOW = (1, "b", "The data label is positioned below the data point.")
|
|
395
|
+
"""The data label is positioned below the data point."""
|
|
396
|
+
|
|
397
|
+
BEST_FIT = (5, "bestFit", "Word sets the position of the data label.")
|
|
398
|
+
"""Word sets the position of the data label."""
|
|
399
|
+
|
|
400
|
+
CENTER = (
|
|
401
|
+
-4108,
|
|
402
|
+
"ctr",
|
|
403
|
+
"The data label is centered on the data point or inside a bar or a pie slice.",
|
|
404
|
+
)
|
|
405
|
+
"""The data label is centered on the data point or inside a bar or a pie slice."""
|
|
406
|
+
|
|
407
|
+
INSIDE_BASE = (
|
|
408
|
+
4,
|
|
409
|
+
"inBase",
|
|
410
|
+
"The data label is positioned inside the data point at the bottom edge.",
|
|
411
|
+
)
|
|
412
|
+
"""The data label is positioned inside the data point at the bottom edge."""
|
|
413
|
+
|
|
414
|
+
INSIDE_END = (3, "inEnd", "The data label is positioned inside the data point at the top edge.")
|
|
415
|
+
"""The data label is positioned inside the data point at the top edge."""
|
|
416
|
+
|
|
417
|
+
LEFT = (-4131, "l", "The data label is positioned to the left of the data point.")
|
|
418
|
+
"""The data label is positioned to the left of the data point."""
|
|
419
|
+
|
|
420
|
+
MIXED = (6, "", "Data labels are in multiple positions (read-only).")
|
|
421
|
+
"""Data labels are in multiple positions (read-only)."""
|
|
422
|
+
|
|
423
|
+
OUTSIDE_END = (
|
|
424
|
+
2,
|
|
425
|
+
"outEnd",
|
|
426
|
+
"The data label is positioned outside the data point at the top edge.",
|
|
427
|
+
)
|
|
428
|
+
"""The data label is positioned outside the data point at the top edge."""
|
|
429
|
+
|
|
430
|
+
RIGHT = (-4152, "r", "The data label is positioned to the right of the data point.")
|
|
431
|
+
"""The data label is positioned to the right of the data point."""
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
XL_LABEL_POSITION = XL_DATA_LABEL_POSITION
|
|
435
|
+
|
|
436
|
+
|
|
437
|
+
class XL_LEGEND_POSITION(BaseXmlEnum):
|
|
438
|
+
"""Specifies the position of the legend on a chart.
|
|
439
|
+
|
|
440
|
+
Example::
|
|
441
|
+
|
|
442
|
+
from pptx2.enum.chart import XL_LEGEND_POSITION
|
|
443
|
+
|
|
444
|
+
chart.has_legend = True
|
|
445
|
+
chart.legend.position = XL_LEGEND_POSITION.BOTTOM
|
|
446
|
+
|
|
447
|
+
MS API Name: `XlLegendPosition`
|
|
448
|
+
|
|
449
|
+
http://msdn.microsoft.com/en-us/library/office/ff745840.aspx
|
|
450
|
+
"""
|
|
451
|
+
|
|
452
|
+
BOTTOM = (-4107, "b", "Below the chart.")
|
|
453
|
+
"""Below the chart."""
|
|
454
|
+
|
|
455
|
+
CORNER = (2, "tr", "In the upper-right corner of the chart border.")
|
|
456
|
+
"""In the upper-right corner of the chart border."""
|
|
457
|
+
|
|
458
|
+
CUSTOM = (-4161, "", "A custom position (read-only).")
|
|
459
|
+
"""A custom position (read-only)."""
|
|
460
|
+
|
|
461
|
+
LEFT = (-4131, "l", "Left of the chart.")
|
|
462
|
+
"""Left of the chart."""
|
|
463
|
+
|
|
464
|
+
RIGHT = (-4152, "r", "Right of the chart.")
|
|
465
|
+
"""Right of the chart."""
|
|
466
|
+
|
|
467
|
+
TOP = (-4160, "t", "Above the chart.")
|
|
468
|
+
"""Above the chart."""
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
class XL_MARKER_STYLE(BaseXmlEnum):
|
|
472
|
+
"""Specifies the marker style for a point or series in a line, scatter, or radar chart.
|
|
473
|
+
|
|
474
|
+
Example::
|
|
475
|
+
|
|
476
|
+
from pptx2.enum.chart import XL_MARKER_STYLE
|
|
477
|
+
|
|
478
|
+
series.marker.style = XL_MARKER_STYLE.CIRCLE
|
|
479
|
+
|
|
480
|
+
MS API Name: `XlMarkerStyle`
|
|
481
|
+
|
|
482
|
+
http://msdn.microsoft.com/en-us/library/office/ff197219.aspx
|
|
483
|
+
"""
|
|
484
|
+
|
|
485
|
+
AUTOMATIC = (-4105, "auto", "Automatic markers")
|
|
486
|
+
"""Automatic markers"""
|
|
487
|
+
|
|
488
|
+
CIRCLE = (8, "circle", "Circular markers")
|
|
489
|
+
"""Circular markers"""
|
|
490
|
+
|
|
491
|
+
DASH = (-4115, "dash", "Long bar markers")
|
|
492
|
+
"""Long bar markers"""
|
|
493
|
+
|
|
494
|
+
DIAMOND = (2, "diamond", "Diamond-shaped markers")
|
|
495
|
+
"""Diamond-shaped markers"""
|
|
496
|
+
|
|
497
|
+
DOT = (-4118, "dot", "Short bar markers")
|
|
498
|
+
"""Short bar markers"""
|
|
499
|
+
|
|
500
|
+
NONE = (-4142, "none", "No markers")
|
|
501
|
+
"""No markers"""
|
|
502
|
+
|
|
503
|
+
PICTURE = (-4147, "picture", "Picture markers")
|
|
504
|
+
"""Picture markers"""
|
|
505
|
+
|
|
506
|
+
PLUS = (9, "plus", "Square markers with a plus sign")
|
|
507
|
+
"""Square markers with a plus sign"""
|
|
508
|
+
|
|
509
|
+
SQUARE = (1, "square", "Square markers")
|
|
510
|
+
"""Square markers"""
|
|
511
|
+
|
|
512
|
+
STAR = (5, "star", "Square markers with an asterisk")
|
|
513
|
+
"""Square markers with an asterisk"""
|
|
514
|
+
|
|
515
|
+
TRIANGLE = (3, "triangle", "Triangular markers")
|
|
516
|
+
"""Triangular markers"""
|
|
517
|
+
|
|
518
|
+
X = (-4168, "x", "Square markers with an X")
|
|
519
|
+
"""Square markers with an X"""
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
class XL_TICK_MARK(BaseXmlEnum):
|
|
523
|
+
"""Specifies a type of axis tick for a chart.
|
|
524
|
+
|
|
525
|
+
Example::
|
|
526
|
+
|
|
527
|
+
from pptx2.enum.chart import XL_TICK_MARK
|
|
528
|
+
|
|
529
|
+
chart.value_axis.minor_tick_mark = XL_TICK_MARK.INSIDE
|
|
530
|
+
|
|
531
|
+
MS API Name: `XlTickMark`
|
|
532
|
+
|
|
533
|
+
http://msdn.microsoft.com/en-us/library/office/ff193878.aspx
|
|
534
|
+
"""
|
|
535
|
+
|
|
536
|
+
CROSS = (4, "cross", "Tick mark crosses the axis")
|
|
537
|
+
"""Tick mark crosses the axis"""
|
|
538
|
+
|
|
539
|
+
INSIDE = (2, "in", "Tick mark appears inside the axis")
|
|
540
|
+
"""Tick mark appears inside the axis"""
|
|
541
|
+
|
|
542
|
+
NONE = (-4142, "none", "No tick mark")
|
|
543
|
+
"""No tick mark"""
|
|
544
|
+
|
|
545
|
+
OUTSIDE = (3, "out", "Tick mark appears outside the axis")
|
|
546
|
+
"""Tick mark appears outside the axis"""
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
class XL_TICK_LABEL_POSITION(BaseXmlEnum):
|
|
550
|
+
"""Specifies the position of tick-mark labels on a chart axis.
|
|
551
|
+
|
|
552
|
+
Example::
|
|
553
|
+
|
|
554
|
+
from pptx2.enum.chart import XL_TICK_LABEL_POSITION
|
|
555
|
+
|
|
556
|
+
category_axis = chart.category_axis
|
|
557
|
+
category_axis.tick_label_position = XL_TICK_LABEL_POSITION.LOW
|
|
558
|
+
|
|
559
|
+
MS API Name: `XlTickLabelPosition`
|
|
560
|
+
|
|
561
|
+
http://msdn.microsoft.com/en-us/library/office/ff822561.aspx
|
|
562
|
+
"""
|
|
563
|
+
|
|
564
|
+
HIGH = (-4127, "high", "Top or right side of the chart.")
|
|
565
|
+
"""Top or right side of the chart."""
|
|
566
|
+
|
|
567
|
+
LOW = (-4134, "low", "Bottom or left side of the chart.")
|
|
568
|
+
"""Bottom or left side of the chart."""
|
|
569
|
+
|
|
570
|
+
NEXT_TO_AXIS = (4, "nextTo", "Next to axis (where axis is not at either side of the chart).")
|
|
571
|
+
"""Next to axis (where axis is not at either side of the chart)."""
|
|
572
|
+
|
|
573
|
+
NONE = (-4142, "none", "No tick labels.")
|
|
574
|
+
"""No tick labels."""
|