<?php

include ("jpgraph/jpgraph.php");
include ("jpgraph/jpgraph_pie.php");

$graph = new PieGraph(250, 200, "auto"); 
$graph->SetFrame(true);

$data = array(10, 10, 10, 10, 10, 10, 10, 10);
$pieplot = new PiePlot($data);
$pieplot->SetSliceColors(array("red", "green", "blue"));

$graph->Add($pieplot);

$graph->Stroke();
?>