PHP Bargraph Generator

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.

Download PHP Bargraph Generator

Advanced Preview

2 Responses to PHP Bargraph Generator
  1. Stuart bainbridge Reply

    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

Leave a Reply

Your email address will not be published. Please enter your name, email and a comment.

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>