/    Sign up×
Community /Pin to ProfileBookmark

Dynamically creating graphs with PHP

Hi guys, I’ve been set an assignment where I will need to generate graphs using PHP and data from a database.

I know there’s a way to manipulate image sizes to create graphs using PHP, but I’ve heard there’s a more effective and better way where the graphs are generated from scratch.

Is this true and if so how is it possible?

Cheers in advance
Jonathan

to post a comment
PHP

7 Comments(s)

Copy linkTweet thisAlerts:
@bokehMar 30.2007 — This is too big a subject for a forum question. Read about the image functions in the manual and if you have specific questions on there implimentation not covered in the manual I'll be happy to help.
Copy linkTweet thisAlerts:
@DARTHTAMPONMar 30.2007 — If you are looking for simple line graphs this might help. (css)

http://www.maxdesign.com.au/presentation/percentage/

if you are looking for more complex graphs and insist on using php try

http://www.dmxzone.com/ShowDetail.asp?NewsId=6135

This one costs $3 ? but im sure if you google long enough you can find it for free.

I would also think javasript might be a good place to look.
Copy linkTweet thisAlerts:
@jonthomas83authorApr 04.2007 — Thing is, I'm running my PHP assignment from a student server with my own domain space and MySql setup through that, will I still be able to use a GD library to build graphs for me?
Copy linkTweet thisAlerts:
@bokehApr 05.2007 — Why don't you ask the provider of the service? They would have a better idea of their server config than a complete stranger.
Copy linkTweet thisAlerts:
@jonthomas83authorApr 05.2007 — Yeah cheers I asked him and he said "GD library bundled in. It's version 2.0.28 Just call the GD functions in your code and they should work"

I only asked here cos I didn't know if it needed to be on the server. Cheers guys I'll get back to you when I have more of a clue of what I need to do with this assignment.

Thank you!
Copy linkTweet thisAlerts:
@nightsterApr 08.2007 — I reckon you could do this using a mixture of css and php quite easily.
Copy linkTweet thisAlerts:
@LuboxApr 08.2007 — Jpgraph

or maybe even flash-graphs:

Fusioncharts

Or do it yourself from scratch just to learn....

Lubox
×

Success!

Help @jonthomas83 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...