View Full Version : Drawing Graph based on DB information

01-21-2010, 05:48 PM
I'd like to be able for my users to select a set of data (saved in a database, related to their profile) and have a statistical graph of this selected data be drawn. Ideally, I would then like them to be able to link to this image that would change depending on changes in the data set (not in real-time obviously...that is, not as an animation).

I'm not entirely sure how to go about this but my inclination is to think that this would primarily a situation in which I should utilize AJAX.

Any input would be appreciated.

01-21-2010, 07:53 PM
No need for ajax at all. You can just use a php drawing/charting library or class to generate the image.

01-21-2010, 08:01 PM
For the graphics part have a look at http://www.aditus.nu/jpgraph/

With this you can created imagemaps to use for drill down etc etc.


01-21-2010, 08:15 PM
I can recommend jpgraph, also. It's pretty good. I've also used baaChart for a simple graph project.

01-21-2010, 08:54 PM
Thanks for the feedback guys. I think this is going to be easier than I anticipated.