This script is loaded using an image tag and generates data based on information added as GET parameters.
For example:
<img src="bar.php?value=100&max=256&info" />
Generates:
This script requires at least four files to use. The first is an HTML file which loads the image (of course), the second is the background “bar.png” image which the graph is built on, the third is a ttf font file, and the fourth is the bar.php script which does all the work. You can see the latter on this page, or you can click the link below to download all the files.


2 Responses to PHP Bargraph Generator
Stuart bainbridge April 19, 2011
Hi Guys, if anyone is still updating this script, please could you help me add a comma as a thousand separator into the text out put for large numbers, for example 10,000/20,000 (50%).
Thanks for a great script.
Stuart
Thomas Hunter May 27, 2011
http://www.php.net/number_format