Пример #1
0
 public function refresh()
 {
     if ($this->_worksheet !== NULL) {
         $this->_plotArea->refresh($this->_worksheet);
     }
 }
Пример #2
0
 /**
  * Get the data series type(s) for a chart plot series
  *
  * @param 	PHPExcel_Chart_PlotArea		$plotArea
  * @return	string|array
  * @throws 	PHPExcel_Writer_Exception
  */
 private static function _getChartType($plotArea)
 {
     $groupCount = $plotArea->getPlotGroupCount();
     if ($groupCount == 1) {
         $chartType = array($plotArea->getPlotGroupByIndex(0)->getPlotType());
     } else {
         $chartTypes = array();
         for ($i = 0; $i < $groupCount; ++$i) {
             $chartTypes[] = $plotArea->getPlotGroupByIndex($i)->getPlotType();
         }
         $chartType = array_unique($chartTypes);
         if (count($chartTypes) == 0) {
             throw new PHPExcel_Writer_Exception('Chart is not yet implemented');
         }
     }
     return $chartType;
 }
Пример #3
0
 public function refresh()
 {
     if ($this->worksheet !== null) {
         $this->plotArea->refresh($this->worksheet);
     }
 }