EvChart - Open source!

Stewart

New member
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:
<?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&chart_height=300&lines=10.0&type=". $_REQUEST['type'] ."&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/bbcharts/bandwidth.php?type=bar
http://www.evolvedsoftware.com/bbcharts/bandwidth.php?type=line

need any help post here

(remember to rename chart.php.txt to chart.php) :p
 

Attachments

Last edited:
Back
Top