Create graphs with PHP and export to PDF

2020-07-18 10:40发布

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.

标签: php pdf graph
7条回答
ゆ 、 Hurt°
2楼-- · 2020-07-18 11:03

I've used the Google Charts API before and inserted them into pdfs using FPDF.

查看更多
We Are One
3楼-- · 2020-07-18 11:14

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/

查看更多
Luminary・发光体
4楼-- · 2020-07-18 11:16

one of the best graph api library is Rgraph.

查看更多
我命由我不由天
5楼-- · 2020-07-18 11:19

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.

查看更多
Rolldiameter
6楼-- · 2020-07-18 11:20

Lot of tools like PHPGraphLib, JPGraph this both produce images that you can embedd into pdfs

查看更多
何必那么认真
7楼-- · 2020-07-18 11:23

Could something like SVGGraph plus SVG to PDF work?

查看更多
登录 后发表回答