PHP Classes

Bar Graphics: Generate bar charts using only HTML tables

Recommend this page to a friend!
  Info   Screenshots   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 63%Total: 2,266 All time: 1,722 This week: 455Up
Version License Categories
bargraphics 1.0BSD LicenseHTML, PHP 5, Graphics
Description 

Author

This class can generate bar charts from a given set of values.

The class provides means to define the label, value and color of each bar.

The bars are drawn using HTML tables with different color values.

The size of the bars is displayed in proportion to the largest bar by setting the relative width of the table cells.

This way the class does not need to use dynamically generated images to represent the bars.

The presentation of the chart details can be configured using CSS styles.

Picture of Emmanuel Arana Corzo
Name: Emmanuel Arana Corzo <contact>
Classes: 2 packages by
Country: Mexico Mexico
Age: 41
All time rank: 106711 in Mexico Mexico
Week rank: 192 Up4 in Mexico Mexico Up

Screenshots (1)  
  • screenGrafico.jpg
  Files folder image Files (3)  
File Role Description
Plain text file barGraphics.class.php Class This is the class, with an example
Plain text file testGraphs.php Example This is an example of use of the API

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:2,266
This week:0
All time:1,722
This week:455Up
 User Ratings  
 
 All time
Utility:91%StarStarStarStarStar
Consistency:87%StarStarStarStarStar
Documentation:-
Examples:91%StarStarStarStarStar
Tests:-
Videos:-
Overall:63%StarStarStarStar
Rank:788