Call For Help: Generating Charts and Graphs in PHP

I need recommendations for a good, free (and, preferably, Free) charting library for PHP.

Ideally this library would be able to generate all the simple types of business graphics — line charts, bar charts, pie charts, etc. If it can do fancy stuff like find trendlines that’s even better.

Have a suggestion? Let me know in the comments thread. Thanks!


Stefaan Defever

December 30, 2004
6:08 pm

Pear’s Image_Graph maybe?

Jason Lefkowitz

December 30, 2004
6:25 pm

Image_Graph looks interesting. Any ideas how it stacks up versus JpGraph:
? Anyone out there used one or the other of these?


December 30, 2004
9:45 pm

I’ve used JpGraph a lot lately and am really impressed by it. The online documentations is really useful and complete. Not sure if it does trendlines or not although a moving average would be easy to program yourself as you crunch through the data to graph. Now, if you wanted to fit a line to a plot (of non-time-series data of course), you could also do that yourself farely easily. Or ask me to write a simple php library that would do those for you. I could actually use something like that…