GChart -- A PHP Library for Drawing Charts

3D-Pie Chart with Colors

<?php
define ('GChart_DIR',dirname(__FILE__).'/gchart');
require_once (GChart_DIR.'/GChart.php');
$pie3d=new GChart_Pie3D(250,100);
$pie3d->add(50,'First','FF0000');
$pie3d->add(25,'Second','00FF00');
$pie3d->add(6,'Third','0000FF');
?>
<img src="<?php echo $pie3d->get_image_string(); ?>" />