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)) {
 
  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)
 
  360                foreach($this->_plotLabel as $plotValues) {
 
  361                        if ($plotValues !== NULL)
 
  364                foreach($this->_plotCategory as $plotValues) {
 
  365                        if ($plotValues !== NULL)
 
An exception for terminatinating execution or to throw for unit testing.
setPlotStyle($plotStyle=null)
getPlotType()
Get Plot Type.
setSmoothLine($smoothLine=TRUE)
getPlotStyle()
Get Plot Style.
getPlotOrder()
Get Plot Order.
getPlotGrouping()
Get Plot Grouping Type.
refresh(PHPExcel_Worksheet $worksheet)
const TYPE_SURFACECHART_3D
setPlotGrouping($groupingType=null)
getPlotLabels()
Get Plot Labels.
getPlotValues()
Get Plot Values.
const GROUPING_PERCENT_STACKED
setPlotType($plotType='')
getPlotLabelByIndex($index)
Get Plot Label by Index.
const TYPE_DOUGHTNUTCHART
getPlotSeriesCount()
Get Number of Plot Series.
setPlotDirection($plotDirection=null)
getPlotDirection()
Get Plot Direction.
getPlotValuesByIndex($index)
Get Plot Values by Index.
getPlotCategoryByIndex($index)
Get Plot Category by Index.
const DIRECTION_HORIZONTAL
__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.
getPlotCategories()
Get Plot Categories.
getSmoothLine()
Get Smooth Line.