Skip to content
This repository was archived by the owner on Jan 2, 2019. It is now read-only.

Non-contiguous range in chart #253

Open
@suseu

Description

@suseu

I am trying to create chart with non-contiguous data range. In Excel I simply separate ranges with a comma, e.g.

=('Chart'!$C$2:$C$5,'Chart'!$C$7:$C$10)

but when I do this in PHPExcel I get such error:

Formula Error: Unexpected , (0)
#0 \PEAR\PHPExcel\PHPExcel\Calculation.php(2893): PHPExcel_Calculation->_raiseFormulaError('Formula Error: ...')
#1 \PEAR\PHPExcel\PHPExcel\Calculation.php(2404): PHPExcel_Calculation->_parseFormula(''Technical vs H...', Object(PHPExcel_Cell))
#2 \PEAR\PHPExcel\PHPExcel\Chart\DataSeriesValues.php(288): PHPExcel_Calculation->_calculateFormulaValue('='Technical vs ...', NULL, Object(PHPExcel_Cell))
#3 \PEAR\PHPExcel\PHPExcel\Chart\DataSeries.php(342): PHPExcel_Chart_DataSeriesValues->refresh(Object(PHPExcel_Worksheet), true)
#4 \PEAR\PHPExcel\PHPExcel\Chart\PlotArea.php(121): PHPExcel_Chart_DataSeries->refresh(Object(PHPExcel_Worksheet))

Is it even possible to create charts from non-contiguous data? If so - how do I do it?
If not - are you planning to add such feature?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions