From 90a8900208c9a4238a85993cac241dcd89d85e5a Mon Sep 17 00:00:00 2001 From: Stephan212 <48237559+Stephan212@users.noreply.github.com> Date: Wed, 21 Aug 2019 10:54:43 +0100 Subject: [PATCH] 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 --- src/PhpWord/Style/Chart.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/PhpWord/Style/Chart.php b/src/PhpWord/Style/Chart.php index 7b271586..f6de7c22 100644 --- a/src/PhpWord/Style/Chart.php +++ b/src/PhpWord/Style/Chart.php @@ -308,6 +308,7 @@ class Chart extends AbstractStyle * "b" - bottom of chart * "t" - top of chart * "l" - left of chart + * "tr" - top right of chart * * default: right *