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 image image image 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

code code2

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 20

Commits related to this issue

Most upvoted comments

@padi-dev-lucvt I have the same error with version 1.19.0. @oleibman I’ll try to upgrade to 1.24.1 to 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?