Reputation: 9138
I'm looking for suggestions on creating graphs with PHP. I would also like to be able to export these graphs to a PDF document.
I am currently using google graphs but I don't like the idea of sending all my information to Google. I'd prefer my own in hosted solution.
I have seen a lot of Flash solutions but i'm not aware of any way to export the SWF's to PDF.
Any pointers greatly appreciated.
Thanks.
Upvotes: 5
Views: 33122
Reputation: 11
We make pdf reports on the fly. These documents have both text and pictures. The pdf is made with TCPDF and the pictures with php GD library. Both library's are free.
Upvotes: 1
Reputation: 1524
You can use Javascript, Highcharts is free for non-commercial usage. And it has PDF export options too.
Highcharts is a charting library written in pure JavaScript, offering an easy way of adding interactive charts to your web site or web application. Highcharts currently supports line, spline, area, areaspline, column, bar, pie and scatter chart types http://www.highcharts.com/
Upvotes: 0
Reputation: 1804
I've used the Google Charts API before and inserted them into pdfs using FPDF.
Upvotes: -1
Reputation: 1243
If you wanted to explore the flash avenue, you could check out http://alivepdf.bytearray.org/ an open pdf library for AS3.
Upvotes: 0
Reputation: 1267
Lot of tools like PHPGraphLib, JPGraph this both produce images that you can embedd into pdfs
Upvotes: 5