PhpSpreadsheet: export excel file with line chart error xl/drawings/drawing1.xml
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?
Successfully save and open new .xlsx file with my data and chart
What is the current behavior?
The error that Component “xl/drawings/drawing1.xml” is deleted. Don’t understand why my chart became drawing.
What are the steps to reproduce?
I have a sample template and have corresponding chart data sheets
When I load them so when I fill them with data and export them, they give an error and the chart is not displayed
Sheet DATA_1 to display data for the chart “Comparison chart through experiments - phase A”
The data is still filled out but the chart is not displayed
Here is my code

About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 20
Commits related to this issue
- Xlsx Reader/Writer Composite Charts Fix #2333. Thanks to @SSI-johnnypops for discovering the problem and formulating most of the solution. The classes involved in setting up composite charts made it ... — committed to oleibman/PhpSpreadsheet by oleibman 2 years ago
- Xlsx Reader/Writer Composite Charts (#3265) Fix #2333. Thanks to @SSI-johnnypops for discovering the problem and formulating most of the solution. The classes involved in setting up composite charts ... — committed to PHPOffice/PhpSpreadsheet by oleibman a year ago
@padi-dev-lucvt I have the same error with version
1.19.0. @oleibman I’ll try to upgrade to1.24.1to see if that solves it.There have been a lot of recent changes to Charts. Can you test with release 1.24 to see if they resolve your problem? If it doesn’t, is it possible to upload your spreadsheet?