How to save charts to saparate .png files? #2656
-
I'm using phpSpreadSheet class to successfully create xlsx spreadsheet with several charts.The spreadsheet is wrtitten down to disk. After that I would like to export these charts from spreadsheet to seperate .png files. Based on documentation I tried to use the following code:
The problem is that $chart->render results false with any error message and - of course - no .png file is saved on disk. But no exception is thrown. I double-checked that I have full rights to save file to selected location and of course there is enough free space on disk... I also checked that foreach loop properly finds all charts, which are saved in .xlsx file. Is there any way to find out why the charts are not rendered to .png files? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
First check: have you installed jpgraph and configured that as your chart renderer? |
Beta Was this translation helpful? Give feedback.
First check: have you installed jpgraph and configured that as your chart renderer?