From 412a2520cdb19e0d57f54ef1cf9e03ff9c45855a Mon Sep 17 00:00:00 2001 From: Pierre Skowron Date: Mon, 9 Mar 2015 14:17:28 +0100 Subject: [PATCH] Set default plotDirection --- Classes/PHPExcel/Chart/DataSeries.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Classes/PHPExcel/Chart/DataSeries.php b/Classes/PHPExcel/Chart/DataSeries.php index 86e61eb1..56faf6ee 100644 --- a/Classes/PHPExcel/Chart/DataSeries.php +++ b/Classes/PHPExcel/Chart/DataSeries.php @@ -137,7 +137,7 @@ class PHPExcel_Chart_DataSeries /** * Create a new PHPExcel_Chart_DataSeries */ - public function __construct($plotType = null, $plotGrouping = null, $plotOrder = array(), $plotLabel = array(), $plotCategory = array(), $plotValues = array(), $smoothLine = null, $plotStyle = null) + public function __construct($plotType = null, $plotGrouping = null, $plotOrder = array(), $plotLabel = array(), $plotCategory = array(), $plotValues = array(), $plotDirection = null, $smoothLine = null, $plotStyle = null) { $this->_plotType = $plotType; $this->_plotGrouping = $plotGrouping; @@ -155,6 +155,11 @@ class PHPExcel_Chart_DataSeries $this->_plotCategory = $plotCategory; $this->_smoothLine = $smoothLine; $this->_plotStyle = $plotStyle; + + if (is_null($plotDirection)) { + $plotDirection = self::DIRECTION_COL; + } + $this->_plotDirection = $plotDirection; } /**