GChart -- A PHP Library for Drawing Charts

Bar Chart with Axises

<?php
define ('GChart_DIR',dirname(__FILE__).'/gchart');
require_once (GChart_DIR.'/GChart.php');

$bar_v=new GChart_Bar_V(250,150);
$x_axis=new GChart_Axis(GChart_BOTTOM_X_AXIS,array('Mon','Tue','Wed','Thu','Fri'));
$y_axis=new GChart_Axis(GChart_LEFT_Y_AXIS);
$s1=new GChart_DataSeries(array(45,60,25,87,23),'First','EABC83');
$bar_v->add($s1);
$bar_v->add_axis($x_axis);
$bar_v->add_axis($y_axis);
?>
<img src="<?php echo $bar_v->get_image_string(); ?>" />