-
Notifications
You must be signed in to change notification settings - Fork 546
/
Copy pathcht-chart.feature
108 lines (86 loc) · 4.13 KB
/
cht-chart.feature
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
Feature: Chart properties
In order to customize the formatting of a chart
As a developer using python-pptx
I need read/write properties and methods on Chart
Scenario Outline: Chart.chart_title
Given a chart having <a-or-no> title
Then chart.chart_title is a ChartTitle object
Examples: chart title presence cases
| a-or-no |
| a |
| no |
Scenario Outline: Get Chart.chart_type
Given a chart of type <chart-type>
Then chart.chart_type is <expected-enum-member>
Examples: chart types
| chart-type | expected-enum-member |
| Area | AREA |
| Stacked Area | AREA_STACKED |
| 100% Stacked Area | AREA_STACKED_100 |
| 3-D Area | THREE_D_AREA |
| 3-D Stacked Area | THREE_D_AREA_STACKED |
| 3-D 100% Stacked Area | THREE_D_AREA_STACKED_100 |
| Clustered Bar | BAR_CLUSTERED |
| Stacked Bar | BAR_STACKED |
| 100% Stacked Bar | BAR_STACKED_100 |
| Clustered Column | COLUMN_CLUSTERED |
| Stacked Column | COLUMN_STACKED |
| 100% Stacked Column | COLUMN_STACKED_100 |
| Line | LINE |
| Stacked Line | LINE_STACKED |
| 100% Stacked Line | LINE_STACKED_100 |
| Marked Line | LINE_MARKERS |
| Stacked Marked Line | LINE_MARKERS_STACKED |
| 100% Stacked Marked Line | LINE_MARKERS_STACKED_100 |
| Pie | PIE |
| Exploded Pie | PIE_EXPLODED |
| XY (Scatter) | XY_SCATTER |
| XY Lines | XY_SCATTER_LINES |
| XY Lines No Markers | XY_SCATTER_LINES_NO_MARKERS |
| XY Smooth Lines | XY_SCATTER_SMOOTH |
| XY Smooth No Markers | XY_SCATTER_SMOOTH_NO_MARKERS |
| Bubble | BUBBLE |
| 3D-Bubble | BUBBLE_THREE_D_EFFECT |
| Radar | RADAR |
| Marked Radar | RADAR_MARKERS |
| Filled Radar | RADAR_FILLED |
Scenario Outline: Get Chart.category_axis
Given a chart of type <chart-type>
Then chart.category_axis is a <type-name> object
Examples: category axis object types
| chart-type | type-name |
| Stacked Bar | CategoryAxis |
| Line (with date categories) | DateAxis |
| XY (Scatter) | ValueAxis |
| Bubble | ValueAxis |
Scenario: Chart.font
Given a Chart object as chart
Then chart.font is a Font object
Scenario Outline: Get Chart.has_title
Given a chart having <a-or-no> title
Then chart.has_title is <expected-value>
Examples: chart title presence cases
| a-or-no | expected-value |
| a | True |
| no | False |
Scenario Outline: Set Chart.has_title
Given a chart having <a-or-no> title
When I assign <value> to chart.has_title
Then chart.has_title is <expected-value>
Examples: chart title assignment cases
| a-or-no | value | expected-value |
| a | True | True |
| a | False | False |
| no | True | True |
| no | False | False |
Scenario Outline: Get Chart.value_axis
Given a chart of type <chart-type>
Then chart.value_axis is a ValueAxis object
Examples: value axis object types
| chart-type |
| Stacked Bar |
| XY (Scatter) |
| Bubble |
Scenario: Chart.series
Given a Chart object as chart
Then chart.series is a SeriesCollection object