for bar chart, I think you can create a gif image (normally 1px x 1px). so you calculate yr result into percentage. when you got the percentage, you can use that value to set the gif length , or adjust to other length. For the height of the image, u can set whatever you want. if you want to show in multiple color, then you can use tranparent gif, and set its background when you show the data in bar chart. This is the easiert way i think of building a bar chart.