Answer the question
In order to leave comments, you need to log in
php + excel: forming xls\xlsx, filling cells with data and generating charts
Hello. It is necessary to generate xls\xlsx file. In addition to filling the cells with data, you need to generate a chart. Please suggest a library for this purpose. I looked in the direction of Simple XLSX and PHPExcel - they do not support chart generation.
Answer the question
In order to leave comments, you need to log in
phpexcel.codeplex.com/ xslx only Used in several projects. The rest of the solutions didn't work.
On *nix, you are unlikely to plot graphs in Excel. If hosting under Win - look towards COM
In general, it’s hard for me to imagine in what situation such a task can arise - it’s not just to create Excel files from PHP, but to generate graphs in them. But if it really is necessary, then I would go this way - I would create templates in Excel, I would rattle the necessary charts there, and I would not create a file from PHP, but fill them with data in predetermined ranges to which the charts are tied.
Xslx is a set of xml in a zip archive. Graphs there, too, as far as I understand, are stored in xml. However, you can generate graphics with third-party libraries as pictures and then insert them into xslx.
I usually do this - I create the necessary file in Excel, change it to zip and see what is there and where it is.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question