GChart -- A PHP Library for Drawing Charts

Simple Bar Chart

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

$bar_h=new GChart_Bar_H(250,150);
$s1=new GChart_DataSeries(array(45,60,25,87,23),'First','EABC83');
$bar_h->add($s1);
?>
<img src="<?php echo $bar_h->et_image_string(); ?>" />

Or you can use 'GChart_Bar_V' class to generate a vertical bar chart: