From 69671d2dc71a7c8101ab27fdbe1aa1bbbf824171 Mon Sep 17 00:00:00 2001 From: Mark Baker Date: Wed, 29 Feb 2012 22:01:45 +0000 Subject: [PATCH] Additional work on stock charts git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@87128 2327b42d-5241-43d6-9e2a-de5ac946f064 --- Classes/PHPExcel/Writer/Excel2007/Chart.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Classes/PHPExcel/Writer/Excel2007/Chart.php b/Classes/PHPExcel/Writer/Excel2007/Chart.php index a4c6d17..9322b7a 100644 --- a/Classes/PHPExcel/Writer/Excel2007/Chart.php +++ b/Classes/PHPExcel/Writer/Excel2007/Chart.php @@ -262,6 +262,10 @@ class PHPExcel_Writer_Excel2007_Chart extends PHPExcel_Writer_Excel2007_WriterPa $objWriter->startElement('c:showNegBubbles'); $objWriter->writeAttribute('val', 0 ); $objWriter->endElement(); + } elseif ($groupType === PHPExcel_Chart_DataSeries::TYPE_STOCKCHART) { + + $objWriter->startElement('c:hiLowLines'); + $objWriter->endElement(); } // Generate 2 unique numbers to use for axId values @@ -570,6 +574,7 @@ class PHPExcel_Writer_Excel2007_Chart extends PHPExcel_Writer_Excel2007_WriterPa private static function _getChartType($plotArea) { $groupCount = $plotArea->getPlotGroupCount(); + if ($groupCount == 1) { $chartType = array($plotArea->getPlotGroupByIndex(0)->getPlotType()); } else { @@ -682,6 +687,12 @@ class PHPExcel_Writer_Excel2007_Chart extends PHPExcel_Writer_Excel2007_WriterPa $objWriter->startElement('c:symbol'); $objWriter->writeAttribute('val', $plotSeriesMarker); $objWriter->endElement(); + + if ($plotSeriesMarker !== 'none') { + $objWriter->startElement('c:size'); + $objWriter->writeAttribute('val', 3); + $objWriter->endElement(); + } $objWriter->endElement(); } }