53 ->getDiskCachingDirectory());
61 $objWriter->startDocument(
'1.0',
'UTF-8',
'yes');
65 $objWriter->writeAttribute(
'xmlns:c',
'http://schemas.openxmlformats.org/drawingml/2006/chart');
66 $objWriter->writeAttribute(
'xmlns:a',
'http://schemas.openxmlformats.org/drawingml/2006/main');
67 $objWriter->writeAttribute(
'xmlns:r',
'http://schemas.openxmlformats.org/officeDocument/2006/relationships');
85 $objWriter->startElement(
'c:autoTitleDeleted');
90 $pChart->getPlotArea(),
91 $pChart->getXAxisLabel(),
92 $pChart->getYAxisLabel(),
94 $pChart->getWorksheet(),
95 $pChart->getChartAxisX(),
96 $pChart->getChartAxisY(),
97 $pChart->getMajorGridlines(),
98 $pChart->getMinorGridlines()
111 $objWriter->startElement(
'c:showDLblsOverMax');
150 $caption =
$title->getCaption();
151 if ((is_array($caption)) && (count($caption) > 0)) {
152 $caption = $caption[0];
155 ->getWriterPart(
'stringtable')
156 ->writeRichTextForCharts(
$objWriter, $caption,
'a');
245 if (is_null($plotArea)) {
250 $this->_seriesIndex = 0;
257 $chartTypes = self::_getChartType($plotArea);
258 $catIsMultiLevelSeries = $valIsMultiLevelSeries = FALSE;
259 $plotGroupingType =
'';
260 foreach ($chartTypes as $chartType) {
264 for (
$i = 0;
$i < $groupCount; ++
$i) {
266 $groupType = $plotGroup->getPlotType();
267 if ($groupType == $chartType) {
269 $plotStyle = $plotGroup->getPlotStyle();
272 $objWriter->writeAttribute(
'val', $plotStyle);
276 $objWriter->writeAttribute(
'val', $plotStyle);
280 $this->
_writePlotGroup($plotGroup, $chartType,
$objWriter, $catIsMultiLevelSeries, $valIsMultiLevelSeries, $plotGroupingType, $pSheet);
290 $objWriter->writeAttribute(
'val', (integer) $plotGroup->getSmoothLine());
300 if ($plotGroupingType ==
'percentStacked' ||
301 $plotGroupingType ==
'stacked' 378 $this->
_writeValAx(
$objWriter, $plotArea,
$xAxisLabel, $chartType, $id1, $id2, $catIsMultiLevelSeries, $xAxis, $yAxis, $majorGridlines, $minorGridlines);
383 $this->
_writeValAx(
$objWriter, $plotArea,
$yAxisLabel, $chartType, $id1, $id2, $valIsMultiLevelSeries, $xAxis, $yAxis, $majorGridlines, $minorGridlines);
401 $showLegendKey = (empty($chartLayout)) ? 0 : $chartLayout->getShowLegendKey();
402 $objWriter->writeAttribute(
'val', ((empty($showLegendKey)) ? 0 : 1));
406 $showVal = (empty($chartLayout)) ? 0 : $chartLayout->getShowVal();
407 $objWriter->writeAttribute(
'val', ((empty($showVal)) ? 0 : 1));
411 $showCatName = (empty($chartLayout)) ? 0 : $chartLayout->getShowCatName();
412 $objWriter->writeAttribute(
'val', ((empty($showCatName)) ? 0 : 1));
416 $showSerName = (empty($chartLayout)) ? 0 : $chartLayout->getShowSerName();
417 $objWriter->writeAttribute(
'val', ((empty($showSerName)) ? 0 : 1));
421 $showPercent = (empty($chartLayout)) ? 0 : $chartLayout->getShowPercent();
422 $objWriter->writeAttribute(
'val', ((empty($showPercent)) ? 0 : 1));
426 $showBubbleSize = (empty($chartLayout)) ? 0 : $chartLayout->getShowBubbleSize();
427 $objWriter->writeAttribute(
'val', ((empty($showBubbleSize)) ? 0 : 1));
430 $objWriter->startElement(
'c:showLeaderLines');
431 $showLeaderLines = (empty($chartLayout)) ? 1 : $chartLayout->getShowLeaderLines();
432 $objWriter->writeAttribute(
'val', ((empty($showLeaderLines)) ? 0 : 1));
462 $objWriter->writeAttribute(
'val', $yAxis->getAxisOptionsProperty(
'orientation'));
489 if (is_array($caption)) {
490 $caption = $caption[0];
514 $objWriter->writeAttribute(
'formatCode', $yAxis->getAxisNumberFormat());
515 $objWriter->writeAttribute(
'sourceLinked', $yAxis->getAxisNumberSourceLinked());
519 $objWriter->writeAttribute(
'val', $yAxis->getAxisOptionsProperty(
'major_tick_mark'));
523 $objWriter->writeAttribute(
'val', $yAxis->getAxisOptionsProperty(
'minor_tick_mark'));
527 $objWriter->writeAttribute(
'val', $yAxis->getAxisOptionsProperty(
'axis_labels'));
536 $objWriter->writeAttribute(
'val', $yAxis->getAxisOptionsProperty(
'horizontal_crosses'));
552 if ($isMultiLevelSeries) {
573 private function _writeValAx(
$objWriter,
PHPExcel_Chart_PlotArea $plotArea,
$yAxisLabel, $groupType, $id1, $id2, $isMultiLevelSeries, $xAxis, $yAxis, $majorGridlines, $minorGridlines) {
584 $objWriter->writeAttribute(
'val', $xAxis->getAxisOptionsProperty(
'orientation'));
586 if (!is_null($xAxis->getAxisOptionsProperty(
'maximum'))) {
588 $objWriter->writeAttribute(
'val', $xAxis->getAxisOptionsProperty(
'maximum'));
592 if (!is_null($xAxis->getAxisOptionsProperty(
'minimum'))) {
594 $objWriter->writeAttribute(
'val', $xAxis->getAxisOptionsProperty(
'minimum'));
612 if (!is_null($majorGridlines->getLineColorProperty(
'value'))) {
614 $objWriter->writeAttribute(
'w', $majorGridlines->getLineStyleProperty(
'width'));
616 $objWriter->startElement(
"a:{$majorGridlines->getLineColorProperty('type')}");
617 $objWriter->writeAttribute(
'val', $majorGridlines->getLineColorProperty(
'value'));
619 $objWriter->writeAttribute(
'val', $majorGridlines->getLineColorProperty(
'alpha'));
625 $objWriter->writeAttribute(
'val', $majorGridlines->getLineStyleProperty(
'dash'));
628 if ($majorGridlines->getLineStyleProperty(
'join') ==
'miter') {
637 if (!is_null($majorGridlines->getLineStyleProperty(
array(
'arrow',
'head',
'type')))) {
639 $objWriter->writeAttribute(
'type', $majorGridlines->getLineStyleProperty(
array(
'arrow',
'head',
'type')));
640 $objWriter->writeAttribute(
'w', $majorGridlines->getLineStyleArrowParameters(
'head',
'w'));
641 $objWriter->writeAttribute(
'len', $majorGridlines->getLineStyleArrowParameters(
'head',
'len'));
645 if (!is_null($majorGridlines->getLineStyleProperty(
array(
'arrow',
'end',
'type')))) {
647 $objWriter->writeAttribute(
'type', $majorGridlines->getLineStyleProperty(
array(
'arrow',
'end',
'type')));
648 $objWriter->writeAttribute(
'w', $majorGridlines->getLineStyleArrowParameters(
'end',
'w'));
649 $objWriter->writeAttribute(
'len', $majorGridlines->getLineStyleArrowParameters(
'end',
'len'));
656 if (!is_null($majorGridlines->getGlowSize())) {
658 $objWriter->writeAttribute(
'rad', $majorGridlines->getGlowSize());
659 $objWriter->startElement(
"a:{$majorGridlines->getGlowColor('type')}");
660 $objWriter->writeAttribute(
'val', $majorGridlines->getGlowColor(
'value'));
662 $objWriter->writeAttribute(
'val', $majorGridlines->getGlowColor(
'alpha'));
668 if (!is_null($majorGridlines->getShadowProperty(
'presets'))) {
669 $objWriter->startElement(
"a:{$majorGridlines->getShadowProperty('effect')}");
670 if (!is_null($majorGridlines->getShadowProperty(
'blur'))) {
671 $objWriter->writeAttribute(
'blurRad', $majorGridlines->getShadowProperty(
'blur'));
673 if (!is_null($majorGridlines->getShadowProperty(
'distance'))) {
674 $objWriter->writeAttribute(
'dist', $majorGridlines->getShadowProperty(
'distance'));
676 if (!is_null($majorGridlines->getShadowProperty(
'direction'))) {
677 $objWriter->writeAttribute(
'dir', $majorGridlines->getShadowProperty(
'direction'));
679 if (!is_null($majorGridlines->getShadowProperty(
'algn'))) {
680 $objWriter->writeAttribute(
'algn', $majorGridlines->getShadowProperty(
'algn'));
682 if (!is_null($majorGridlines->getShadowProperty(
array(
'size',
'sx')))) {
683 $objWriter->writeAttribute(
'sx', $majorGridlines->getShadowProperty(
array(
'size',
'sx')));
685 if (!is_null($majorGridlines->getShadowProperty(
array(
'size',
'sy')))) {
686 $objWriter->writeAttribute(
'sy', $majorGridlines->getShadowProperty(
array(
'size',
'sy')));
688 if (!is_null($majorGridlines->getShadowProperty(
array(
'size',
'kx')))) {
689 $objWriter->writeAttribute(
'kx', $majorGridlines->getShadowProperty(
array(
'size',
'kx')));
691 if (!is_null($majorGridlines->getShadowProperty(
'rotWithShape'))) {
692 $objWriter->writeAttribute(
'rotWithShape', $majorGridlines->getShadowProperty(
'rotWithShape'));
694 $objWriter->startElement(
"a:{$majorGridlines->getShadowProperty(array('color', 'type'))}");
695 $objWriter->writeAttribute(
'val', $majorGridlines->getShadowProperty(
array(
'color',
'value')));
698 $objWriter->writeAttribute(
'val', $majorGridlines->getShadowProperty(
array(
'color',
'alpha')));
705 if (!is_null($majorGridlines->getSoftEdgesSize())) {
707 $objWriter->writeAttribute(
'rad', $majorGridlines->getSoftEdgesSize());
715 if ($minorGridlines->getObjectState()) {
719 if (!is_null($minorGridlines->getLineColorProperty(
'value'))) {
721 $objWriter->writeAttribute(
'w', $minorGridlines->getLineStyleProperty(
'width'));
723 $objWriter->startElement(
"a:{$minorGridlines->getLineColorProperty('type')}");
724 $objWriter->writeAttribute(
'val', $minorGridlines->getLineColorProperty(
'value'));
726 $objWriter->writeAttribute(
'val', $minorGridlines->getLineColorProperty(
'alpha'));
732 $objWriter->writeAttribute(
'val', $minorGridlines->getLineStyleProperty(
'dash'));
735 if ($minorGridlines->getLineStyleProperty(
'join') ==
'miter') {
744 if (!is_null($minorGridlines->getLineStyleProperty(
array(
'arrow',
'head',
'type')))) {
746 $objWriter->writeAttribute(
'type', $minorGridlines->getLineStyleProperty(
array(
'arrow',
'head',
'type')));
747 $objWriter->writeAttribute(
'w', $minorGridlines->getLineStyleArrowParameters(
'head',
'w'));
748 $objWriter->writeAttribute(
'len', $minorGridlines->getLineStyleArrowParameters(
'head',
'len'));
752 if (!is_null($minorGridlines->getLineStyleProperty(
array(
'arrow',
'end',
'type')))) {
754 $objWriter->writeAttribute(
'type', $minorGridlines->getLineStyleProperty(
array(
'arrow',
'end',
'type')));
755 $objWriter->writeAttribute(
'w', $minorGridlines->getLineStyleArrowParameters(
'end',
'w'));
756 $objWriter->writeAttribute(
'len', $minorGridlines->getLineStyleArrowParameters(
'end',
'len'));
764 if (!is_null($minorGridlines->getGlowSize())) {
766 $objWriter->writeAttribute(
'rad', $minorGridlines->getGlowSize());
767 $objWriter->startElement(
"a:{$minorGridlines->getGlowColor('type')}");
768 $objWriter->writeAttribute(
'val', $minorGridlines->getGlowColor(
'value'));
770 $objWriter->writeAttribute(
'val', $minorGridlines->getGlowColor(
'alpha'));
776 if (!is_null($minorGridlines->getShadowProperty(
'presets'))) {
777 $objWriter->startElement(
"a:{$minorGridlines->getShadowProperty('effect')}");
778 if (!is_null($minorGridlines->getShadowProperty(
'blur'))) {
779 $objWriter->writeAttribute(
'blurRad', $minorGridlines->getShadowProperty(
'blur'));
781 if (!is_null($minorGridlines->getShadowProperty(
'distance'))) {
782 $objWriter->writeAttribute(
'dist', $minorGridlines->getShadowProperty(
'distance'));
784 if (!is_null($minorGridlines->getShadowProperty(
'direction'))) {
785 $objWriter->writeAttribute(
'dir', $minorGridlines->getShadowProperty(
'direction'));
787 if (!is_null($minorGridlines->getShadowProperty(
'algn'))) {
788 $objWriter->writeAttribute(
'algn', $minorGridlines->getShadowProperty(
'algn'));
790 if (!is_null($minorGridlines->getShadowProperty(
array(
'size',
'sx')))) {
791 $objWriter->writeAttribute(
'sx', $minorGridlines->getShadowProperty(
array(
'size',
'sx')));
793 if (!is_null($minorGridlines->getShadowProperty(
array(
'size',
'sy')))) {
794 $objWriter->writeAttribute(
'sy', $minorGridlines->getShadowProperty(
array(
'size',
'sy')));
796 if (!is_null($minorGridlines->getShadowProperty(
array(
'size',
'kx')))) {
797 $objWriter->writeAttribute(
'kx', $minorGridlines->getShadowProperty(
array(
'size',
'kx')));
799 if (!is_null($minorGridlines->getShadowProperty(
'rotWithShape'))) {
800 $objWriter->writeAttribute(
'rotWithShape', $minorGridlines->getShadowProperty(
'rotWithShape'));
802 $objWriter->startElement(
"a:{$minorGridlines->getShadowProperty(array('color', 'type'))}");
803 $objWriter->writeAttribute(
'val', $minorGridlines->getShadowProperty(
array(
'color',
'value')));
805 $objWriter->writeAttribute(
'val', $minorGridlines->getShadowProperty(
array(
'color',
'alpha')));
811 if (!is_null($minorGridlines->getSoftEdgesSize())) {
813 $objWriter->writeAttribute(
'rad', $minorGridlines->getSoftEdgesSize());
838 if (is_array($caption)) {
839 $caption = $caption[0];
865 $objWriter->writeAttribute(
'formatCode', $xAxis->getAxisNumberFormat());
866 $objWriter->writeAttribute(
'sourceLinked', $xAxis->getAxisNumberSourceLinked());
870 $objWriter->writeAttribute(
'val', $xAxis->getAxisOptionsProperty(
'major_tick_mark'));
874 $objWriter->writeAttribute(
'val', $xAxis->getAxisOptionsProperty(
'minor_tick_mark'));
878 $objWriter->writeAttribute(
'val', $xAxis->getAxisOptionsProperty(
'axis_labels'));
883 if (!is_null($xAxis->getFillProperty(
'value'))) {
885 $objWriter->startElement(
"a:" . $xAxis->getFillProperty(
'type'));
886 $objWriter->writeAttribute(
'val', $xAxis->getFillProperty(
'value'));
888 $objWriter->writeAttribute(
'val', $xAxis->getFillProperty(
'alpha'));
896 $objWriter->writeAttribute(
'w', $xAxis->getLineStyleProperty(
'width'));
897 $objWriter->writeAttribute(
'cap', $xAxis->getLineStyleProperty(
'cap'));
898 $objWriter->writeAttribute(
'cmpd', $xAxis->getLineStyleProperty(
'compound'));
900 if (!is_null($xAxis->getLineProperty(
'value'))) {
902 $objWriter->startElement(
"a:" . $xAxis->getLineProperty(
'type'));
903 $objWriter->writeAttribute(
'val', $xAxis->getLineProperty(
'value'));
905 $objWriter->writeAttribute(
'val', $xAxis->getLineProperty(
'alpha'));
912 $objWriter->writeAttribute(
'val', $xAxis->getLineStyleProperty(
'dash'));
915 if ($xAxis->getLineStyleProperty(
'join') ==
'miter') {
924 if (!is_null($xAxis->getLineStyleProperty(
array(
'arrow',
'head',
'type')))) {
926 $objWriter->writeAttribute(
'type', $xAxis->getLineStyleProperty(
array(
'arrow',
'head',
'type')));
927 $objWriter->writeAttribute(
'w', $xAxis->getLineStyleArrowWidth(
'head'));
928 $objWriter->writeAttribute(
'len', $xAxis->getLineStyleArrowLength(
'head'));
932 if (!is_null($xAxis->getLineStyleProperty(
array(
'arrow',
'end',
'type')))) {
934 $objWriter->writeAttribute(
'type', $xAxis->getLineStyleProperty(
array(
'arrow',
'end',
'type')));
935 $objWriter->writeAttribute(
'w', $xAxis->getLineStyleArrowWidth(
'end'));
936 $objWriter->writeAttribute(
'len', $xAxis->getLineStyleArrowLength(
'end'));
944 if (!is_null($xAxis->getGlowProperty(
'size'))) {
946 $objWriter->writeAttribute(
'rad', $xAxis->getGlowProperty(
'size'));
947 $objWriter->startElement(
"a:{$xAxis->getGlowProperty(array('color','type'))}");
948 $objWriter->writeAttribute(
'val', $xAxis->getGlowProperty(
array(
'color',
'value')));
950 $objWriter->writeAttribute(
'val', $xAxis->getGlowProperty(
array(
'color',
'alpha')));
956 if (!is_null($xAxis->getShadowProperty(
'presets'))) {
957 $objWriter->startElement(
"a:{$xAxis->getShadowProperty('effect')}");
959 if (!is_null($xAxis->getShadowProperty(
'blur'))) {
960 $objWriter->writeAttribute(
'blurRad', $xAxis->getShadowProperty(
'blur'));
962 if (!is_null($xAxis->getShadowProperty(
'distance'))) {
963 $objWriter->writeAttribute(
'dist', $xAxis->getShadowProperty(
'distance'));
965 if (!is_null($xAxis->getShadowProperty(
'direction'))) {
966 $objWriter->writeAttribute(
'dir', $xAxis->getShadowProperty(
'direction'));
968 if (!is_null($xAxis->getShadowProperty(
'algn'))) {
969 $objWriter->writeAttribute(
'algn', $xAxis->getShadowProperty(
'algn'));
971 if (!is_null($xAxis->getShadowProperty(
array(
'size',
'sx')))) {
972 $objWriter->writeAttribute(
'sx', $xAxis->getShadowProperty(
array(
'size',
'sx')));
974 if (!is_null($xAxis->getShadowProperty(
array(
'size',
'sy')))) {
975 $objWriter->writeAttribute(
'sy', $xAxis->getShadowProperty(
array(
'size',
'sy')));
977 if (!is_null($xAxis->getShadowProperty(
array(
'size',
'kx')))) {
978 $objWriter->writeAttribute(
'kx', $xAxis->getShadowProperty(
array(
'size',
'kx')));
980 if (!is_null($xAxis->getShadowProperty(
'rotWithShape'))) {
981 $objWriter->writeAttribute(
'rotWithShape', $xAxis->getShadowProperty(
'rotWithShape'));
984 $objWriter->startElement(
"a:{$xAxis->getShadowProperty(array('color','type'))}");
985 $objWriter->writeAttribute(
'val', $xAxis->getShadowProperty(
array(
'color',
'value')));
987 $objWriter->writeAttribute(
'val', $xAxis->getShadowProperty(
array(
'color',
'alpha')));
994 if (!is_null($xAxis->getSoftEdgesSize())) {
996 $objWriter->writeAttribute(
'rad', $xAxis->getSoftEdgesSize());
1008 if (!is_null($xAxis->getAxisOptionsProperty(
'horizontal_crosses_value'))) {
1010 $objWriter->writeAttribute(
'val', $xAxis->getAxisOptionsProperty(
'horizontal_crosses_value'));
1014 $objWriter->writeAttribute(
'val', $xAxis->getAxisOptionsProperty(
'horizontal_crosses'));
1022 if (!is_null($xAxis->getAxisOptionsProperty(
'major_unit'))) {
1024 $objWriter->writeAttribute(
'val', $xAxis->getAxisOptionsProperty(
'major_unit'));
1028 if (!is_null($xAxis->getAxisOptionsProperty(
'minor_unit'))) {
1030 $objWriter->writeAttribute(
'val', $xAxis->getAxisOptionsProperty(
'minor_unit'));
1036 if ($isMultiLevelSeries) {
1058 $groupCount =
$plotArea->getPlotGroupCount();
1060 if ($groupCount == 1) {
1066 $chartTypes =
array();
1067 for (
$i = 0;
$i < $groupCount; ++
$i) {
1068 $chartTypes[] =
$plotArea->getPlotGroupByIndex(
$i)
1071 $chartType = array_unique($chartTypes);
1072 if (count($chartTypes) == 0) {
1096 &$catIsMultiLevelSeries,
1097 &$valIsMultiLevelSeries,
1101 if (is_null($plotGroup)) {
1109 $objWriter->writeAttribute(
'val', $plotGroup->getPlotDirection());
1113 if (!is_null($plotGroup->getPlotGrouping())) {
1114 $plotGroupingType = $plotGroup->getPlotGrouping();
1116 $objWriter->writeAttribute(
'val', $plotGroupingType);
1121 $plotSeriesOrder = $plotGroup->getPlotOrder();
1122 $plotSeriesCount = count($plotSeriesOrder);
1132 ($plotSeriesCount > 1)
1145 foreach ($plotSeriesOrder as $plotSeriesIdx => $plotSeriesRef) {
1149 $objWriter->writeAttribute(
'val', $this->_seriesIndex + $plotSeriesIdx);
1153 $objWriter->writeAttribute(
'val', $this->_seriesIndex + $plotSeriesRef);
1181 $plotSeriesLabel = $plotGroup->getPlotLabelByIndex($plotSeriesRef);
1182 if ($plotSeriesLabel && ($plotSeriesLabel->getPointCount() > 0)) {
1205 $plotSeriesValues = $plotGroup->getPlotValuesByIndex($plotSeriesRef);
1206 if ($plotSeriesValues) {
1207 $plotSeriesMarker = $plotSeriesValues->getPointMarker();
1208 if ($plotSeriesMarker) {
1211 $objWriter->writeAttribute(
'val', $plotSeriesMarker);
1214 if ($plotSeriesMarker !==
'none') {
1229 $objWriter->startElement(
'c:invertIfNegative');
1235 $plotSeriesCategory = $plotGroup->getPlotCategoryByIndex($plotSeriesRef);
1236 if ($plotSeriesCategory && ($plotSeriesCategory->getPointCount() > 0)) {
1237 $catIsMultiLevelSeries = $catIsMultiLevelSeries || $plotSeriesCategory->isMultiLevelSeries();
1244 if (!is_null($plotGroup->getPlotStyle())) {
1245 $plotStyle = $plotGroup->getPlotStyle();
1267 if ($plotSeriesValues) {
1268 $valIsMultiLevelSeries = $valIsMultiLevelSeries || $plotSeriesValues->isMultiLevelSeries();
1290 $this->_seriesIndex += $plotSeriesIdx + 1;
1302 if (is_null($plotSeriesLabel)) {
1307 $objWriter->writeRawData($plotSeriesLabel->getDataSource());
1312 $objWriter->writeAttribute(
'val', $plotSeriesLabel->getPointCount());
1315 foreach ($plotSeriesLabel->getDataValues() as $plotLabelKey => $plotLabelValue) {
1317 $objWriter->writeAttribute(
'idx', $plotLabelKey);
1345 if (is_null($plotSeriesValues)) {
1349 if ($plotSeriesValues->isMultiLevelSeries()) {
1350 $levelCount = $plotSeriesValues->multiLevelCount();
1352 $objWriter->startElement(
'c:multiLvlStrRef');
1355 $objWriter->writeRawData($plotSeriesValues->getDataSource());
1358 $objWriter->startElement(
'c:multiLvlStrCache');
1361 $objWriter->writeAttribute(
'val', $plotSeriesValues->getPointCount());
1364 for ($level = 0; $level < $levelCount; ++$level) {
1367 foreach ($plotSeriesValues->getDataValues() as $plotSeriesKey => $plotSeriesValue) {
1368 if (isset($plotSeriesValue[$level])) {
1370 $objWriter->writeAttribute(
'idx', $plotSeriesKey);
1373 $objWriter->writeRawData($plotSeriesValue[$level]);
1386 $objWriter->startElement(
'c:' . $dataType .
'Ref');
1389 $objWriter->writeRawData($plotSeriesValues->getDataSource());
1392 $objWriter->startElement(
'c:' . $dataType .
'Cache');
1399 if (($plotSeriesValues->getFormatCode() !== NULL) &&
1400 ($plotSeriesValues->getFormatCode() !==
'')
1403 $objWriter->writeRawData($plotSeriesValues->getFormatCode());
1409 $objWriter->writeAttribute(
'val', $plotSeriesValues->getPointCount());
1412 $dataValues = $plotSeriesValues->getDataValues();
1413 if (!empty($dataValues)) {
1414 if (is_array($dataValues)) {
1415 foreach ($dataValues as $plotSeriesKey => $plotSeriesValue) {
1417 $objWriter->writeAttribute(
'idx', $plotSeriesKey);
1442 if (is_null($plotSeriesValues)) {
1454 $objWriter->writeAttribute(
'val', $plotSeriesValues->getPointCount());
1457 $dataValues = $plotSeriesValues->getDataValues();
1458 if (!empty($dataValues)) {
1459 if (is_array($dataValues)) {
1460 foreach ($dataValues as $plotSeriesKey => $plotSeriesValue) {
1462 $objWriter->writeAttribute(
'idx', $plotSeriesKey);
1493 $layoutTarget =
$layout->getLayoutTarget();
1494 if (!is_null($layoutTarget)) {
1496 $objWriter->writeAttribute(
'val', $layoutTarget);
1501 if (!is_null($xMode)) {
1508 if (!is_null($yMode)) {
1556 $objWriter->startElement(
'mc:AlternateContent');
1557 $objWriter->writeAttribute(
'xmlns:mc',
'http://schemas.openxmlformats.org/markup-compatibility/2006');
1560 $objWriter->writeAttribute(
'xmlns:c14',
'http://schemas.microsoft.com/office/drawing/2007/8/2/chart');
1561 $objWriter->writeAttribute(
'Requires',
'c14');
1600 $objWriter->writeAttribute(
'orientation',
"portrait");
getPlotGroupCount()
Get Number of Plot Groups.
_writeValAx($objWriter, PHPExcel_Chart_PlotArea $plotArea, $yAxisLabel, $groupType, $id1, $id2, $isMultiLevelSeries, $xAxis, $yAxis, $majorGridlines, $minorGridlines)
Write Value Axis.
getPlotGroupByIndex($index)
Get Plot Series by Index.
_writeBubbles($plotSeriesValues, $objWriter, PHPExcel_Worksheet $pSheet)
Write Bubble Chart Details.
writeChart(PHPExcel_Chart $pChart=NULL)
Write charts to XML format.
_writePrintSettings($objWriter)
Write Printer Settings.
getParentWriter()
Get parent IWriter object.
_writePlotSeriesValues($plotSeriesValues, $objWriter, $groupType, $dataType='str', PHPExcel_Worksheet $pSheet)
Write Plot Series Values.
_writeTitle(PHPExcel_Chart_Title $title=NULL, $objWriter)
Write Chart Title.
Create styles array
The data for the language used.
static _getChartType($plotArea)
Get the data series type(s) for a chart plot series.
_writeDataLbls($objWriter, $chartLayout)
Write Data Labels.
_writePlotGroup($plotGroup, $groupType, $objWriter, &$catIsMultiLevelSeries, &$valIsMultiLevelSeries, &$plotGroupingType, PHPExcel_Worksheet $pSheet)
Write Plot Group (series of related plots)
_writePlotArea(PHPExcel_Chart_PlotArea $plotArea, PHPExcel_Chart_Title $xAxisLabel=NULL, PHPExcel_Chart_Title $yAxisLabel=NULL, $objWriter, PHPExcel_Worksheet $pSheet, PHPExcel_Chart_Axis $xAxis, PHPExcel_Chart_Axis $yAxis, PHPExcel_Chart_GridLines $majorGridlines, PHPExcel_Chart_GridLines $minorGridlines)
Write Chart Plot Area.
_writeAlternateContent($objWriter)
Write Alternate Content block.
_writeCatAx($objWriter, PHPExcel_Chart_PlotArea $plotArea, $xAxisLabel, $groupType, $id1, $id2, $isMultiLevelSeries, $xAxis, $yAxis)
Write Category Axis.
const STORAGE_MEMORY
Temporary storage method.
static ControlCharacterPHP2OOXML($value='')
Convert from PHP control character to OpenXML escaped control character.
_writeLegend(PHPExcel_Chart_Legend $legend=NULL, $objWriter)
Write Chart Legend.
_writeLayout(PHPExcel_Chart_Layout $layout=NULL, $objWriter)
Write Layout.
_writePlotSeriesLabel($plotSeriesLabel, $objWriter)
Write Plot Series Label.