Skip to content

Get plotVisOnly and dispBlanksAs props from chart in Xlsx Chart Writer.#1266

Closed
guicapanema wants to merge 1 commit intoPHPOffice:masterfrom
guicapanema:master
Closed

Get plotVisOnly and dispBlanksAs props from chart in Xlsx Chart Writer.#1266
guicapanema wants to merge 1 commit intoPHPOffice:masterfrom
guicapanema:master

Conversation

@guicapanema
Copy link
Contributor

This is:

- [x] a bugfix
- [ ] a new feature

Checklist:

Why this change is needed?

The values passed to the \PhpOffice\PhpSpreadsheet\Chart\Chart class constructor were being ignored by the Xlsx writer.

This is basically my first contribution to a bigger OS project, so I apologize in advance for my amateurism.

These chart properties where hardcoded in the Xlsx writer, ignoring the
values passed to the \PhpOffice\PhpSpreadsheet\Chart\Chart class constructor.

I also changed the default $displayBlanksAs value to 'gap' to match this
document:
https://docs.microsoft.com/en-us/openspecs/office_standards/ms-oi29500/1942c028-3c4e-4dd9-a379-b12a9b7914df
@PowerKiKi PowerKiKi closed this in 144a0ca Nov 30, 2019
@PowerKiKi
Copy link
Member

Thank you for your contribution. I added a CHANGELOG entry and merged it.

BlackyTay pushed a commit to BlackyTay/PhpSpreadsheet that referenced this pull request Aug 8, 2025
These chart properties where hardcoded in the Xlsx writer, ignoring the
values passed to the \PhpOffice\PhpSpreadsheet\Chart\Chart class constructor.

I also changed the default $displayBlanksAs value to 'gap' to match this
document:
https://docs.microsoft.com/en-us/openspecs/office_standards/ms-oi29500/1942c028-3c4e-4dd9-a379-b12a9b7914df

Closes PHPOffice#1266
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants