PHPOffice / PhpSpreadsheet

A pure PHP library for reading and writing spreadsheet files
https://phpspreadsheet.readthedocs.io
MIT License
13.32k stars 3.45k forks source link

Samples/Chart/32* Create Corrupt Files for Bubble and Surface Charts #2763

Closed oleibman closed 2 years ago

oleibman commented 2 years ago

This is:

- [x] a bug report
- [ ] a feature request
- [ ] **not** a usage question (ask them on https://stackoverflow.com/questions/tagged/phpspreadsheet or https://gitter.im/PHPOffice/PhpSpreadsheet)

What is the expected behavior?

Sample output should be valid.

What is the current behavior?

Excel reports errors trying to open:

LibreOffice does not report any corruption in the files. However, the Bubble charts are essentially missing; it shows charts in the Surface chart members, but not in the expected format (and different from how it displays the templates from which the output files are derived).

What are the steps to reproduce?

Please provide a Minimal, Complete, and Verifiable example of code that exhibits the issue without relying on an external Excel file or a web server:

Run Samples/Chart/32_Chart_read_write.php

Which versions of PhpSpreadsheet and PHP are affected?

oleibman commented 2 years ago

PR #2841, just merged, eliminates the corruption for Bubble Charts, and adds 3D support for those. Files now look good in Excel. LibreOffice still doesn't display them correctly. It is worth noting that LibreOffice also does not correctly display the templates on which the sample output is based. The same is true for Gnumeric.

Surface Charts were not addressed in that PR, and their samples continue to produce corrupt results.