PHP Classes

Diagram: Draw an hierarchic diagram from an array

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 68%Total: 5,192 All time: 508 This week: 673Down
Version License Categories
diagram 1.0.0The PHP LicenseGraphics


This class draws a diagram from an array that defines an hierarchy tree.

You can set font of the text labels and the colors used in the diagram image.

Please check the generated documentation for more details.

Innovation Award
PHP Programming Innovation award winner
April 2004

Prize: One book of choice by O'Reilly
There are many packages for drawing all sorts of charts and graphs to be presented in Web applications. Most of them provide common types of graphs like bar charts, pie charts, line charts, etc..

One type of interesting graph for which it is not easy to find a ready to use package that generates it, is the hierarchic diagram. It is useful to provide a graphical representation of groups of entities that establish parent-child relationships.

This class provides a solution to generate a hierarchic diagrams using arrays to describe hierarchies.

Since arrays are very easy to define in PHP, the solution provided by this class is very simple to use, despite the complexity of generating this type of diagram with automatic layout of entities,

Manuel Lemos
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: 290 Down3 in Portugal Portugal Down
Innovation award
Innovation award
Nominee: 4x

Winner: 2x

  Files folder image Files  
File Role Description
Accessible without login HTML file class.diagram.html Doc. generated documentation
Plain text file class.diagram.php Class Class
Accessible without login Plain text file test.php Example Loads class and creates a diagram

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:508
This week:673Down
User Ratings User Comments (1)
 All time