140 public function __construct($plotType = null, $plotGrouping = null, $plotOrder =
array(), $plotLabel =
array(), $plotCategory =
array(), $plotValues =
array(), $plotDirection = null, $smoothLine = null, $plotStyle = null)
142 $this->_plotType = $plotType;
143 $this->_plotGrouping = $plotGrouping;
144 $this->_plotOrder = $plotOrder;
145 $keys = array_keys($plotValues);
146 $this->_plotValues = $plotValues;
147 if ((count($plotLabel) == 0) || (is_null($plotLabel[$keys[0]]))) {
151 $this->_plotLabel = $plotLabel;
152 if ((count($plotCategory) == 0) || (is_null($plotCategory[$keys[0]]))) {
155 $this->_plotCategory = $plotCategory;
156 $this->_smoothLine = $smoothLine;
157 $this->_plotStyle = $plotStyle;
159 if (is_null($plotDirection)) {
160 $plotDirection = self::DIRECTION_COL;
162 $this->_plotDirection = $plotDirection;
181 $this->_plotType = $plotType;
201 $this->_plotGrouping = $groupingType;
221 $this->_plotDirection = $plotDirection;
249 $keys = array_keys($this->_plotLabel);
250 if (in_array($index,$keys)) {
251 return $this->_plotLabel[$index];
252 } elseif(isset($keys[$index])) {
253 return $this->_plotLabel[$keys[$index]];
273 $keys = array_keys($this->_plotCategory);
274 if (in_array($index,$keys)) {
275 return $this->_plotCategory[$index];
276 } elseif(isset($keys[$index])) {
277 return $this->_plotCategory[$keys[$index]];
298 $this->_plotStyle = $plotStyle;
317 $keys = array_keys($this->_plotValues);
318 if (in_array($index,$keys)) {
319 return $this->_plotValues[$index];
320 } elseif(isset($keys[$index])) {
321 return $this->_plotValues[$keys[$index]];
332 return count($this->_plotValues);
351 $this->_smoothLine = $smoothLine;
356 foreach($this->_plotValues as $plotValues) {
357 if ($plotValues !== NULL)
358 $plotValues->refresh($worksheet, TRUE);
360 foreach($this->_plotLabel as $plotValues) {
361 if ($plotValues !== NULL)
362 $plotValues->refresh($worksheet, TRUE);
364 foreach($this->_plotCategory as $plotValues) {
365 if ($plotValues !== NULL)
366 $plotValues->refresh($worksheet, FALSE);
setPlotStyle($plotStyle=null)
Set Plot Style.
getPlotLabels()
Get Plot Labels.
getPlotValuesByIndex($index)
Get Plot Values by Index.
setPlotDirection($plotDirection=null)
Set Plot Direction.
const DIRECTION_HORIZONTAL
getPlotCategoryByIndex($index)
Get Plot Category by Index.
getPlotGrouping()
Get Plot Grouping Type.
__construct($plotType=null, $plotGrouping=null, $plotOrder=array(), $plotLabel=array(), $plotCategory=array(), $plotValues=array(), $plotDirection=null, $smoothLine=null, $plotStyle=null)
Create a new PHPExcel_Chart_DataSeries.
getPlotOrder()
Get Plot Order.
getPlotType()
Get Plot Type.
refresh(PHPExcel_Worksheet $worksheet)
getPlotValues()
Get Plot Values.
setPlotType($plotType='')
Set Plot Type.
getPlotSeriesCount()
Get Number of Plot Series.
getSmoothLine()
Get Smooth Line.
setSmoothLine($smoothLine=TRUE)
Set Smooth Line.
const GROUPING_PERCENT_STACKED
Create styles array
The data for the language used.
getPlotDirection()
Get Plot Direction.
const TYPE_SURFACECHART_3D
getPlotLabelByIndex($index)
Get Plot Label by Index.
setPlotGrouping($groupingType=null)
Set Plot Grouping Type.
getPlotCategories()
Get Plot Categories.
const TYPE_DOUGHTNUTCHART
getPlotStyle()
Get Plot Style.