PHP Classes

Bar Graph: Dynamically created bar graph

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 50%Total: 6,081 All time: 371 This week: 673Down
Version License Categories
bar_graph 1.0.0GNU General Publi...Graphics, Statistics


This class creates a PNG image bar graph for inclusion in HTML pages.

The graph can display one or more data sets in user defined colors. The font size, font color background color, spacing between sets of bars, labels, and y-axis tick marks are all set by the user.

To use the class you first need to collect some information, such as the data, labels and the image dimensions. While the thickness and height of the bars will adjust to fit your image, the text will not.

After creating the image you can set many of the features.

Picture of Scott Mattocks
Name: Scott Mattocks <contact>
Classes: 4 packages by
Country: United States United States
Age: 46
All time rank: 12414 in United States United States
Week rank: 258 Down27 in United States United States Down
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Plain text file bar_graph.class Class PHP class file
Accessible without login Plain text file bar_graph.html Example Sample output
Accessible without login Plain text file bar_graph_test.php Example Usage script

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:371
This week:673Down
 User Ratings  
 All time