if all you want is a bargraph... you can do this in html only
make each bar a TD of one row... actually a DIV inside the TD
set the DIV width=30 or whatever
and the DIV height to that % that the bar is worth
set the TABLE height to whatever max pixel hight you want
<table height="100">
<tr>
<td>
<div height="10%"
width="20"
bgcolor="green"><img src="1x1_clear_spacer.gif" /></div>
</td>
<td>
<div height="50%"
width="20"
bgcolor="blue"><img src="1x1_clear_spacer.gif" /></div>
</td>
<td>
<div height="40%"
width="20"
bgcolor="red"><img src="1x1_clear_spacer.gif" /></div>
</td>
</tr>
</table>
and set your colors in html... viola much easier than a GD library...
if you even feel more feisty you can actually calculate out the div height in pixels or each bar to make things more solid
however... you may have other reasons for wanting an image of some sort... but just in case i thought i might offer my solution