Further chart bugfixes, plus an example of changing chart data for use in

templates
This commit is contained in:
Mark Baker
2012-07-27 12:22:47 +01:00
parent b871674f18
commit 8ab0200584
4 changed files with 78 additions and 13 deletions
@@ -278,12 +278,7 @@ class PHPExcel_Chart_DataSeriesValues
}
public function refresh(PHPExcel_Worksheet $worksheet) {
// echo '$this->_dataSource:',PHP_EOL;
// var_dump($this->_dataSource);
if ($this->_dataSource !== NULL) {
// echo '$this->_dataValues:',PHP_EOL;
// var_dump($this->_dataValues);
$calcEngine = PHPExcel_Calculation::getInstance();
$newDataValues = PHPExcel_Calculation::_unwrapResult(
$calcEngine->_calculateFormulaValue(
@@ -293,13 +288,7 @@ class PHPExcel_Chart_DataSeriesValues
)
);
// echo '$newDataValues:',PHP_EOL;
// var_dump($newDataValues);
$this->_dataValues = PHPExcel_Calculation_Functions::flattenArray($newDataValues);
$this->_dataValues = array_values(array_shift($newDataValues));
// $this->_dataValues = array_filter($this->_dataValues,array($this,'_stripNulls'));
// echo '$this->_dataValues:',PHP_EOL;
// var_dump($this->_dataValues);
}
}