Mine was a simple demonstration. For advanced graphs, check this out http://pear.php.net/package/Image_Graph