public function refresh() { if ($this->_worksheet !== NULL) { $this->_plotArea->refresh($this->_worksheet); } }
/** * 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; }
public function refresh() { if ($this->worksheet !== null) { $this->plotArea->refresh($this->worksheet); } }