Closed lvlukola closed 2 years ago
You should set your grouping to null rather than DataSeries::GROUPING_STANDARD
. Without that change, I was unable even to open the output file successfully. PhpSpreadsheet should probably be changed to not generate the grouping tag for surface charts.
That does not fix your problem. Apparently Excel requires that its view3D
tag be populated even for non-3D surface charts. For now, you can accomplish that with the following code:
$chart
->setRotX(90)
->setRotY(0)
->setRAngAx(0)
->setPerspective(0);
While I am looking into the problem from the first paragraph, I will also see if there's a way for PhpSpreadsheet to handle this automatically without the application having to add that statement.
Thanks. It's OK!
I'm trying to plot contour chart (surface 2d), but I'm getting surface 3d chart
The library can do it?