PHP-GTK2 Newsletter
|
Sample Code 232: How to draw a simple bar graph using GD2? |
| Written by kksou | ||||||
| Tuesday, 15 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
|
||||||
| < Prev | Next > |
|---|




