From 2465f9961d654fc76057f55a35d4486d16d1e268 Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Sun, 21 May 2017 14:00:54 +0200 Subject: [PATCH] #356 : PowerPoint2007 Writer : Implement visibility for axis (Fix for charts) --- src/PhpPresentation/Writer/PowerPoint2007/PptCharts.php | 2 +- tests/resources/schema/ooxml/dml-chart.xsd | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/PhpPresentation/Writer/PowerPoint2007/PptCharts.php b/src/PhpPresentation/Writer/PowerPoint2007/PptCharts.php index e94df6f8f..ef1fd6d94 100644 --- a/src/PhpPresentation/Writer/PowerPoint2007/PptCharts.php +++ b/src/PhpPresentation/Writer/PowerPoint2007/PptCharts.php @@ -108,7 +108,7 @@ public function writeChart(Chart $chart) // c:depthPercent $objWriter->startElement('c:depthPercent'); - $objWriter->writeAttribute('val', $chart->getView3D()->getDepthPercent() . '%'); + $objWriter->writeAttribute('val', $chart->getView3D()->getDepthPercent()); $objWriter->endElement(); // c:rAngAx diff --git a/tests/resources/schema/ooxml/dml-chart.xsd b/tests/resources/schema/ooxml/dml-chart.xsd index 01d369352..91559f2ce 100644 --- a/tests/resources/schema/ooxml/dml-chart.xsd +++ b/tests/resources/schema/ooxml/dml-chart.xsd @@ -214,13 +214,19 @@ - + + + + + + +