Simple 2D-pie Chart
<?php define ('GChart_DIR',dirname(__FILE__).'/gchart'); require_once (GChart_DIR.'/GChart.php'); $pie2d=new GChart_Pie2D(150,150); $pie2d->add(50); $pie2d->add(25); $pie2d->add(6); ?> <img src="<?php echo $pie2d->get_image_string(); ?>" />
or use the following code:
<?php define ('GChart_DIR',dirname(__FILE__).'/gchart'); require_once (GChart_DIR.'/GChart.php'); $pie2d=new GChart_Pie2D(150,150); $pie2d->add(array(50,25,6)); ?> <img src="<?php echo $pie2d->get_image_string(); ?>" />