PHP Classes

Bar Graph: Dynamically created bar graph

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   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
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: 46
All time rank: 12414 in United States United States
Week rank: 250 Down34 in United States United States Down
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files (3)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:6,081
This week:0
All time:371
This week:673Down
 User Ratings  
 
 All time
Utility:73%StarStarStarStar
Consistency:69%StarStarStarStar
Documentation:-
Examples:69%StarStarStarStar
Tests:-
Videos:-
Overall:50%StarStarStar
Rank:2691