Get Paid to Participate     Twitter     Facebook     Google+
Hosting Discussion
 

forgot password?


Reply


Old
  Post #1 (permalink)   07-19-2004, 12:30 PM
HD Newbie
 
Join Date: Jun 2004
Location: Warwickshire, UK
Posts: 46
Send a message via MSN to Stewart

Status: Stewart is offline
Just finished writing this and thought some one may find it handy so im letting the world have it

in order to use just do something like this:

PHP Code:
<?php
$chartdata
['data']          = array("col1" =>2"col2" =>40"col3"=> 10"col4" =>5);
$chartdata['colours']       = array("0, 0, 255""255,0,0");
$chartdata['info']             = array("title" => "Bandwidth Usage""yaxis" => "usage (GB)""xaxis" => "Month");
echo 
"<img src='chart.php?chart_width=500&amp;chart_height=300&amp;lines=10.0&amp;type="$_REQUEST['type'] ."&amp;chart="base64_encode(gzcompress(serialize($chartdata))) ."' alt='chart' />";
?>
should be simple to work out how to use.

examples of that script here:

http://www.evolvedsoftware.com/bbcha...h.php?type=bar
http://www.evolvedsoftware.com/bbcha....php?type=line

need any help post here

(remember to rename chart.php.txt to chart.php) :p
Attached Files
File Type: txt LICENSE.txt (18.0 KB, 0 views)
File Type: txt chart.php.txt (7.4 KB, 0 views)
__________________
Stewart McIntosh,
Lead Developer
Evolved ICT

Last edited by Stewart : 07-19-2004 at 12:49 PM.
 
 
 


Old
  Post #2 (permalink)   07-23-2004, 02:32 AM
HD Newbie
 
Join Date: Jun 2004
Posts: 28

Status: pmoduk2 is offline
Not bad
__________________
- Professional website design and development.
- ProjectModules Internet Solutions
- PMod design & development
HTTPPoint.com for website development discussion. In time, there'll be no where like it ;)
 
 
 
Reply

Thread Tools

New Post New Post   Old Post Old Post
Posting Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Sponsored By: