Yes,
You can do graphs in PHP. All i kno how to do is bar graphs though.
I dont really know the "official" way of making graphs, but how i would do it is take your values ($varA, $varB), add them together into a variable ($total). Then to get the percents you would do...
$varA_percent = ($varA - $total) *100;
$varB_percent = ($varB - $total) *100;
both of those percents should add up to 100. you can round if u want..
$num_of_decimals = 2;
$varA_percent = round($varA_percent, $num_of_decimals);
now u hav ur percents, you need ur image. U can make a gradient image for your bar if you want, or u can do just plain
now you make a table, you can dress is up w/a grid bg if u want, that seems to work for me. Lets say, for this example, the width is 600 pixels. so you would do...
$varA_width = 600 - $varA_percent;
$varB_width = 600 - $varB_percent;
from that you should b able to print 2 (or however many values you have) bars using ur images that u made.
you can also do like graphs if your server has the ability to create dynamic images on the fly, but i dont have any experience w/dynamic images, so you'll have to get sum1 else to help you in that field.
Tell me if i helped,
Blayne