From e624bb7c9ec4475cf3d81f7b045608e859ddcc50 Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Fri, 24 Feb 2012 07:45:08 +0000 Subject: [PATCH] Holes in doughnuts git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@86882 2327b42d-5241-43d6-9e2a-de5ac946f064 --- Classes/PHPExcel/Writer/Excel2007/Chart.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Classes/PHPExcel/Writer/Excel2007/Chart.php b/Classes/PHPExcel/Writer/Excel2007/Chart.php index f33196c..4d4dc82 100644 --- a/Classes/PHPExcel/Writer/Excel2007/Chart.php +++ b/Classes/PHPExcel/Writer/Excel2007/Chart.php @@ -254,6 +254,13 @@ class PHPExcel_Writer_Excel2007_Chart extends PHPExcel_Writer_Excel2007_WriterPa $objWriter->startElement('c:firstSliceAng'); $objWriter->writeAttribute('val', 0); $objWriter->endElement(); + + if ($groupType === PHPExcel_Chart_DataSeries::TYPE_DONUTCHART) { + + $objWriter->startElement('c:holeSize'); + $objWriter->writeAttribute('val', 50); + $objWriter->endElement(); + } } $objWriter->endElement();