PHP Classes

Bar Graph generator: Generates bar graphs from file definitions

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (4)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 72%Total: 10,303 All time: 126 This week: 146Down
Version License Categories
bargraph 1.0The PHP LicenseGraphics, Statistics


This class is meant to generate bar graphs defined either programatically calling the class functions or using definition file to specify the graph characteristics.

The graph definitions file structure is very simple and so it is probably a better way to create graphics on the fly.

It supports axis background or border color, title text and color, graph background color, bars background and border colors, padding distances, etc.. Transparent background and transparency levels for the entire image are also supported.

The bar graph images are generated in true color in PNG format.

Picture of Diogo Resende
Name: Diogo Resende <contact>
Classes: 10 packages by
Country: Portugal Portugal
Age: 41
All time rank: 292 in Portugal Portugal
Week rank: 89 Down5 in Portugal Portugal Down
Innovation award
Innovation award
Nominee: 4x

Winner: 2x

  Files folder image Files  
File Role Description
Accessible without login HTML file bargraph.html Doc. Simple Documentation
Plain text file class.bargraph.php Class BarGraph Class
Accessible without login Plain text file graph.def Data Example of a definition file
Accessible without login Plain text file index.php Example Another example not using any definition file
Accessible without login Plain text file loaddefinition.php Example Example of how to load de definition file

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:126
This week:146Down
User Ratings User Comments (2)
 All time
15 years ago (victor)
Nice class, works super and looks good.
16 years ago (T. H.)