mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-23 05:46:06 +03:00
Additional work on stock charts
git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@87128 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
parent
41199626d8
commit
69671d2dc7
@ -262,6 +262,10 @@ class PHPExcel_Writer_Excel2007_Chart extends PHPExcel_Writer_Excel2007_WriterPa
|
|||||||
$objWriter->startElement('c:showNegBubbles');
|
$objWriter->startElement('c:showNegBubbles');
|
||||||
$objWriter->writeAttribute('val', 0 );
|
$objWriter->writeAttribute('val', 0 );
|
||||||
$objWriter->endElement();
|
$objWriter->endElement();
|
||||||
|
} elseif ($groupType === PHPExcel_Chart_DataSeries::TYPE_STOCKCHART) {
|
||||||
|
|
||||||
|
$objWriter->startElement('c:hiLowLines');
|
||||||
|
$objWriter->endElement();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generate 2 unique numbers to use for axId values
|
// 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)
|
private static function _getChartType($plotArea)
|
||||||
{
|
{
|
||||||
$groupCount = $plotArea->getPlotGroupCount();
|
$groupCount = $plotArea->getPlotGroupCount();
|
||||||
|
|
||||||
if ($groupCount == 1) {
|
if ($groupCount == 1) {
|
||||||
$chartType = array($plotArea->getPlotGroupByIndex(0)->getPlotType());
|
$chartType = array($plotArea->getPlotGroupByIndex(0)->getPlotType());
|
||||||
} else {
|
} else {
|
||||||
@ -682,6 +687,12 @@ class PHPExcel_Writer_Excel2007_Chart extends PHPExcel_Writer_Excel2007_WriterPa
|
|||||||
$objWriter->startElement('c:symbol');
|
$objWriter->startElement('c:symbol');
|
||||||
$objWriter->writeAttribute('val', $plotSeriesMarker);
|
$objWriter->writeAttribute('val', $plotSeriesMarker);
|
||||||
$objWriter->endElement();
|
$objWriter->endElement();
|
||||||
|
|
||||||
|
if ($plotSeriesMarker !== 'none') {
|
||||||
|
$objWriter->startElement('c:size');
|
||||||
|
$objWriter->writeAttribute('val', 3);
|
||||||
|
$objWriter->endElement();
|
||||||
|
}
|
||||||
$objWriter->endElement();
|
$objWriter->endElement();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user