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 51%Total: 6,075 All time: 371 This week: 221Up
Version License Categories
bar_graph 1.0.0GNU General Publi...Graphics, Statistics
Description Author

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: 44
All time rank: 12214 in United States United States
Week rank: 480 Down53 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  
 0%
Total:6,075
This week:0
All time:371
This week:221Up
 User Ratings  
 
 All time
Utility:75%StarStarStarStar
Consistency:70%StarStarStarStar
Documentation:-
Examples:70%StarStarStarStar
Tests:-
Videos:-
Overall:51%StarStarStar
Rank:2241
  
For more information send a message to info at phpclasses dot org.