64 $namespacesChartMeta = $chartElements->getNamespaces(
true);
65 $chartElementsC = $chartElements->children($namespacesChartMeta[
'c']);
68 $dispBlanksAs = $plotVisOnly = NULL;
70 foreach($chartElementsC as $chartElementKey => $chartElement) {
71 switch ($chartElementKey) {
73 foreach($chartElement as $chartDetailsKey => $chartDetails) {
74 $chartDetailsC = $chartDetails->children($namespacesChartMeta[
'c']);
75 switch ($chartDetailsKey) {
77 $plotAreaLayout = $XaxisLable = $YaxisLable = null;
78 $plotSeries = $plotAttributes =
array();
79 foreach($chartDetails as $chartDetailKey => $chartDetail) {
80 switch ($chartDetailKey) {
82 $plotAreaLayout = self::_chartLayoutDetails($chartDetail,$namespacesChartMeta,
'plotArea');
85 if (isset($chartDetail->title)) {
86 $XaxisLabel = self::_chartTitle($chartDetail->title->children($namespacesChartMeta[
'c']),$namespacesChartMeta,
'cat');
90 if (isset($chartDetail->title)) {
91 $XaxisLabel = self::_chartTitle($chartDetail->title->children($namespacesChartMeta[
'c']),$namespacesChartMeta,
'cat');
95 if (isset($chartDetail->title)) {
96 $YaxisLabel = self::_chartTitle($chartDetail->title->children($namespacesChartMeta[
'c']),$namespacesChartMeta,
'cat');
101 $barDirection = self::_getAttribute($chartDetail->barDir,
'val',
'string');
102 $plotSer = self::_chartDataSeries($chartDetail,$namespacesChartMeta,$chartDetailKey);
103 $plotSer->setPlotDirection($barDirection);
104 $plotSeries[] = $plotSer;
105 $plotAttributes = self::_readChartAttributes($chartDetail);
109 $plotSeries[] = self::_chartDataSeries($chartDetail,$namespacesChartMeta,$chartDetailKey);
110 $plotAttributes = self::_readChartAttributes($chartDetail);
114 $plotSeries[] = self::_chartDataSeries($chartDetail,$namespacesChartMeta,$chartDetailKey);
115 $plotAttributes = self::_readChartAttributes($chartDetail);
117 case "doughnutChart":
120 $explosion = isset($chartDetail->ser->explosion);
121 $plotSer = self::_chartDataSeries($chartDetail,$namespacesChartMeta,$chartDetailKey);
122 $plotSer->setPlotStyle($explosion);
123 $plotSeries[] = $plotSer;
124 $plotAttributes = self::_readChartAttributes($chartDetail);
127 $scatterStyle = self::_getAttribute($chartDetail->scatterStyle,
'val',
'string');
128 $plotSer = self::_chartDataSeries($chartDetail,$namespacesChartMeta,$chartDetailKey);
129 $plotSer->setPlotStyle($scatterStyle);
130 $plotSeries[] = $plotSer;
131 $plotAttributes = self::_readChartAttributes($chartDetail);
134 $bubbleScale = self::_getAttribute($chartDetail->bubbleScale,
'val',
'integer');
135 $plotSer = self::_chartDataSeries($chartDetail,$namespacesChartMeta,$chartDetailKey);
136 $plotSer->setPlotStyle($bubbleScale);
137 $plotSeries[] = $plotSer;
138 $plotAttributes = self::_readChartAttributes($chartDetail);
141 $radarStyle = self::_getAttribute($chartDetail->radarStyle,
'val',
'string');
142 $plotSer = self::_chartDataSeries($chartDetail,$namespacesChartMeta,$chartDetailKey);
143 $plotSer->setPlotStyle($radarStyle);
144 $plotSeries[] = $plotSer;
145 $plotAttributes = self::_readChartAttributes($chartDetail);
148 case "surface3DChart":
149 $wireFrame = self::_getAttribute($chartDetail->wireframe,
'val',
'boolean');
150 $plotSer = self::_chartDataSeries($chartDetail,$namespacesChartMeta,$chartDetailKey);
151 $plotSer->setPlotStyle($wireFrame);
152 $plotSeries[] = $plotSer;
153 $plotAttributes = self::_readChartAttributes($chartDetail);
156 $plotSeries[] = self::_chartDataSeries($chartDetail,$namespacesChartMeta,$chartDetailKey);
157 $plotAttributes = self::_readChartAttributes($plotAreaLayout);
161 if ($plotAreaLayout == NULL) {
165 self::_setChartAttributes($plotAreaLayout,$plotAttributes);
168 $plotVisOnly = self::_getAttribute($chartDetails,
'val',
'string');
171 $dispBlanksAs = self::_getAttribute($chartDetails,
'val',
'string');
174 $title = self::_chartTitle($chartDetails,$namespacesChartMeta,
'title');
178 $legendLayout = null;
179 $legendOverlay =
false;
180 foreach($chartDetails as $chartDetailKey => $chartDetail) {
181 switch ($chartDetailKey) {
183 $legendPos = self::_getAttribute($chartDetail,
'val',
'string');
186 $legendOverlay = self::_getAttribute($chartDetail,
'val',
'boolean');
189 $legendLayout = self::_chartLayoutDetails($chartDetail,$namespacesChartMeta,
'legend');
Create styles array
The data for the language used.