From 54c363023672575393e6eae6569bee8d37df03b3 Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Mon, 22 Oct 2012 18:07:18 +0100 Subject: [PATCH] Fix to axis rendering for donut and pie charts --- Classes/PHPExcel/Chart/Renderer/jpgraph.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Classes/PHPExcel/Chart/Renderer/jpgraph.php b/Classes/PHPExcel/Chart/Renderer/jpgraph.php index e03001e..e0b6b91 100644 --- a/Classes/PHPExcel/Chart/Renderer/jpgraph.php +++ b/Classes/PHPExcel/Chart/Renderer/jpgraph.php @@ -107,13 +107,11 @@ class PHPExcel_Chart_Renderer_jpgraph $testCurrentIndex = 0; foreach($datasetLabels as $i => $datasetLabel) { - array_reverse($datasetLabel); - if (is_array($datasetLabel)) { if ($rotation == 'bar') { - $datasetLabel = array_reverse($datasetLabel); $datasetLabels[$i] = implode(" ",$datasetLabel); } else { + $datasetLabel = array_reverse($datasetLabel); $datasetLabels[$i] = implode("\n",$datasetLabel); } } else {