This is a barchart generator built using PHP’s GD image library
(GD is normally installed on most PHP builds). Here in this example you can generate barchart .
Example:

Usage & params
In barchart.php, update the variable $f to point to a TTF font file the script should use (one is included in the download ZIP). In this file you can also set other global settings, such as font sizes (variables $fs, $fs2 and $fs3) and colours.
Call the script in the src of an image tag:
<img src=”../path/to/barchart.php?params”>
…where params is a set of property/value pairings from the following:
data (string, required) – a set of number/label pairings separated by a |, and with numbers separated from labels with a colon, e.g. 5:label 1|16:label 2|3:label 3
fontAngle (int, default: -45°) – the angle of the text labels underneath each block
increment (int, default: dyamic) – the script will itself attempt to work out the most suitable numerical increments on the Y axis, depending on the data you pass. If you want to force it to a particular issue, e.g. 10 or 100, pass it here.
chartHeight (int, default: 400) – the height in pixels of the image
numUnitsAboveMax (int, default: 1) – the number of increments above the highest value to display (e.g. if increment is 5 and highest value is 36, the highest increment will be 40). This allows some padding between the top of the highest block and the top of the chart.
yAxisInfo (string) – a legend to be displayed vertically alongside the Y axis, explaining its role
blockWidth (int, default: 30) – the width in pixels of each block
spaceBetweenBlocks (int, default: 0) – the margin in pixels either side of each block
randomColours (bool, default: false) – if true, block colours will be random, not those set in the PHP file
noGrid (bool, default: false) – if true, no grid will appear behind the blocks
gradient (string) – either ‘dark’ or ‘light’. Applies a gradient to the blocks (you can tailor the sensitivity of this in the PHP itself)




Did you steal the chart from here?
http://www.mitya.co.uk/scripts/GD-barchart-generator-117
Tommy, First of all you need to check every corner. Then shout tommy again check my website, Reference link is there.