Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create Excel chart programmatically in PHP

Tags:

php

excel

Do you have any idea on how to create a chart in an Excel sheet programmatically from PHP ?

I know you can invoke the Excel COM object, but the server is running on a Linux machine...

I already use the excellent PHPExcel library but they do not offer the option to create charts.

Thanks !

like image 563
Amadeus45 Avatar asked Mar 25 '26 23:03

Amadeus45


2 Answers

Give Google Charts API a go.

Aonther option you could look at is RRD tool, see here

HTH

like image 180
Anand Shah Avatar answered Mar 27 '26 13:03

Anand Shah


I think it's not a bad idea to use PHPs GD library like these

WS Charts

Bar graph tutorial

or JpGraph, I'm not sure of the internals but there is free PHP5 and PHP4 versions available

like image 43
aland Avatar answered Mar 27 '26 12:03

aland



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!