Minor charting fixes

This commit is contained in:
Mark Baker
2012-10-27 00:02:38 +01:00
parent a3303cd05e
commit 9be433af58
4 changed files with 20 additions and 8 deletions
@@ -289,6 +289,12 @@ class PHPExcel_Chart_DataSeriesValues
);
if ($flatten) {
$this->_dataValues = PHPExcel_Calculation_Functions::flattenArray($newDataValues);
foreach($this->_dataValues as &$dataValue) {
if ((!empty($dataValue)) && ($dataValue[0] == '#')) {
$dataValue = 0.0;
}
}
unset($dataValue);
} else {
$cellRange = explode('!',$this->_dataSource);
if (count($cellRange) > 1) {