Looking for ready-to-go charts and diagrams

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
Tubbietoeter
Forum Contributor
Posts: 149
Joined: Fri Mar 14, 2003 2:41 am
Location: Germany

Looking for ready-to-go charts and diagrams

Post by Tubbietoeter »

Hi there,

I want do display some line-charts and found a tool called "PanaChart". This is really neat, easy to configure and all, but unfortunately is sends "Header('Content-Type: image/png');" which doesn't allow you to put HTML code around the graph.
Now it is not really convenient to include all the graphs in seperate frames, but I want to include them into text.

Does someone know something like "PanaChart" that doesn't send those headers? Or can I tweak this so I get it to work as I need it? I really have no time to do hardcore gd learning.
The tool must be open source and free to use, since this will be used on a corporate intranet.

Thanks in advance,

Steff
User avatar
mudkicker
Forum Contributor
Posts: 479
Joined: Wed Jul 09, 2003 6:11 pm
Location: Istanbul, TR
Contact:

Post by mudkicker »

There are many scripts like this
look at these sites:

http://www.hotscripts.com
http://phpresourceindex.com
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

could link to the gd image useing the image tag

Code: Select all

<img src="gd.php">
you can also pass the vars via GET, i.e. gd.php?x=45&y=12.
Tubbietoeter
Forum Contributor
Posts: 149
Joined: Fri Mar 14, 2003 2:41 am
Location: Germany

Post by Tubbietoeter »

qads wrote:could link to the gd image useing the image tag

Code: Select all

<img src="gd.php">
you can also pass the vars via GET, i.e. gd.php?x=45&y=12.
I would NEVER EVER have thought of something like that but actually it makes sense ... :lol:

I'm gonna try it right away, thanks a lot!!

PHP can really be cool ... ;o) .. .you just have to know how to use it ... he he
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

i found panachart to be a major PITA

http://quimby.gnus.org/circus/chart/chart-manual.php
http://www.ruistech.com/phpBarGraph

got better evaluations ;)
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

I recommend premaking the charts, as opposed to processing the chat making script for every single user request. It will boost script execution time, and it will be less stressful on your servers.

What you need to do to set that up is schedule a time to process them with cron (if you're on a Linux/Unix server only). Then simply call the image output of the script cron processed.

More info: [google]linux cron information cpanel setup help[/google]
Tubbietoeter
Forum Contributor
Posts: 149
Joined: Fri Mar 14, 2003 2:41 am
Location: Germany

Post by Tubbietoeter »

@Tim: true, those look way better. PanaChart was just the first real free thing I've found. Thanks for the links I'll have a look at it.

@Sami: You are right, but it will not be that many users. This is about availability measurements of some of our systems and giving some (graphical) overviews.
I might even do a cron job, will see whether it is possible to create PDF Files and mail them (this would come in really handy), but I will worry about this later, right now I don't have clear wishes from my customers.
Post Reply