Subscribe
Free Knowledge in an RSS feed

PHP Bargraph Generator

Article published Wednesday, September 16th, 2009 at 11:36 am

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

CodeVault Entry

Tags: ,

Leave a Reply