|
| 1 | +Feature: ChartEx waterfall charts |
| 2 | + In order to add Office 2016 waterfall charts to a slide |
| 3 | + As a developer using python-pptx |
| 4 | + I need the ChartEx writer path to create modern chart graphic frames |
| 5 | + |
| 6 | + |
| 7 | + Scenario Outline: Add a waterfall chart through either public entry point |
| 8 | + Given a blank slide |
| 9 | + And ChartEx waterfall data case q4-total |
| 10 | + When I add the ChartEx waterfall via <add-path> |
| 11 | + Then the active ChartEx frame exposes ChartEx but not a classic chart |
| 12 | + And the active ChartEx chart type is waterfall |
| 13 | + And the active ChartEx series is named Revenue |
| 14 | + And the active ChartEx series values are 100.0, 50.0, -30.0, 80.0, 200.0 |
| 15 | + |
| 16 | + Examples: public waterfall entry points |
| 17 | + | add-path | |
| 18 | + | add_chart | |
| 19 | + | add_chartex | |
| 20 | + |
| 21 | + |
| 22 | + Scenario Outline: Waterfall category labels are preserved on creation |
| 23 | + Given a blank slide |
| 24 | + And ChartEx waterfall data case <data-case> |
| 25 | + When I add the ChartEx waterfall via <add-path> |
| 26 | + Then the active ChartEx category labels are <category-labels> |
| 27 | + |
| 28 | + Examples: category label sets |
| 29 | + | data-case | add-path | category-labels | |
| 30 | + | q4-total | add_chart | Q1, Q2, Q3, Q4, Total | |
| 31 | + | q4-total | add_chartex | Q1, Q2, Q3, Q4, Total | |
| 32 | + | cash-bridge | add_chart | Start, Sales, Returns, Ops, Tax, End | |
| 33 | + | cash-bridge | add_chartex | Start, Sales, Returns, Ops, Tax, End | |
| 34 | + | regional-rollup | add_chart | East, West, Midwest, Online, Total | |
| 35 | + | regional-rollup | add_chartex | East, West, Midwest, Online, Total | |
| 36 | + |
| 37 | + |
| 38 | + Scenario Outline: Waterfall subtotal markers survive round-trip |
| 39 | + Given a blank slide |
| 40 | + And ChartEx waterfall data case <data-case> |
| 41 | + When I add the ChartEx waterfall via <add-path> |
| 42 | + And I round-trip the presentation for ChartEx inspection |
| 43 | + Then the active ChartEx frame exposes ChartEx but not a classic chart |
| 44 | + And the active ChartEx subtotal indices are <subtotal-indices> |
| 45 | + And the active ChartEx category labels are <category-labels> |
| 46 | + |
| 47 | + Examples: subtotal preservation cases |
| 48 | + | data-case | add-path | subtotal-indices | category-labels | |
| 49 | + | q4-total | add_chart | 4 | Q1, Q2, Q3, Q4, Total | |
| 50 | + | q4-total | add_chartex | 4 | Q1, Q2, Q3, Q4, Total | |
| 51 | + | cash-bridge | add_chart | 0, 5 | Start, Sales, Returns, Ops, Tax, End | |
| 52 | + | cash-bridge | add_chartex | 0, 5 | Start, Sales, Returns, Ops, Tax, End | |
| 53 | + | regional-rollup | add_chart | 4 | East, West, Midwest, Online, Total | |
| 54 | + | regional-rollup | add_chartex | 4 | East, West, Midwest, Online, Total | |
0 commit comments