Skip to content

Commit 90a8900

Browse files
Stephan212 chart dynamic legend position (#2)
* Writer/Part/Chart.php Add dynamic Legend positions The position of the legend of charts was always fixed to the right. Adding in the option to set it dynamically via a new option under styles/chart * Update Syle/Chart.php Add in the public functions to getStyle() to get and set the legend position
1 parent 9e572ec commit 90a8900

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/PhpWord/Style/Chart.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ public function getLegendPosition()
308308
* "b" - bottom of chart
309309
* "t" - top of chart
310310
* "l" - left of chart
311+
* "tr" - top right of chart
311312
*
312313
* default: right
313314
*

0 commit comments

Comments
 (0)