|
Sample Code 232: How to draw a simple bar graph using GD2? |
| Written by kksou | ||||||
| Monday, 14 May 2007 | ||||||
|
Problem You would like to draw a simple bar graph from a set of data as shown below:
Solution We can draw a simple bar graph using the GD2 library. For those of you who are not familiar with GD2, please refer to the PHP documentation at: http://www.php.net/gd To run the following example, make sure you php-gtk2 is compiled with GD2 library. Note: The Gnope Installer version DOES NOT support GD2. Please download the latest php-gtk2 binary from the official PHP-GTK site as outlined in the article How to install php gtk2 on windows? Sample Code
Explanation
Related Links
User reviews Average user ratings: 5.0 (from 1 user)Note: You have to be a registered member to leave a comment. Free registration here. |
||||||
| < Prev | Next > |
|---|







February 27, 2008 4:49am