Good graphing engines

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
greennomad
Forum Newbie
Posts: 1
Joined: Sat Apr 18, 2009 4:10 pm

Good graphing engines

Post by greennomad »

Hi. I've looked around for a good graphing engine and haven't been found one that seems to be decent.

My needs:
- should be able to make simple line graphs, with either a number or time on the Y axis (for example, could graph "time left work" each day, or count number of pushups each day)
- should be able to update via Ajax
- should be able to be customizable so that a line would be drawn to indicate goals (if counting push ups each day with a running total, want to be able to show the goal of X pushups). Or draw a vertical line to show the upcoming deadline (if pushups need to be done by June 1)
- relatively pretty

Any recommendations?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Good graphing engines

Post by pickle »

The two main PHP graphing libraries I know of are jpgraph and [urlhttp://pchart.sourceforge.net/]pchart[/url]. jpgraph is older & updated more regularly, but pchart is much prettier.

Neither of them have AJAX built-in, because that's entirely out of the scope of a graphing engine. Whether the chart updates or not, or how it's done is entirely up to you - the engine just builds the graphs.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply