Hacked By AnonymousFox
<?
#####################################################################
if(strlen($value)>0) {
$datay=explode(",",$value);
$datax=explode(",",$label);
} else {
$datax=array("");
$datay=array(0);
}
if(strlen($valueformat)==0) {
$valueformat="d";
}
// Find Max value pices -----------
$maxvalue=0;
for($i=0;$i<sizeof($datay);$i++) if($datay[$i]>=$maxvalue) $maxvalue=$datay[$i];
for($i=0;$i<sizeof($datay);$i++) {
if($datay[$i]==$maxvalue) {
$datapices[$i]="15";
} else {
$datapices[$i]=0;
}
}
#####################################################################
include ("jpgraph.php");
include ("jpgraph_pie.php");
include ("jpgraph_pie3d.php");
// Create the Pie Graph.
$graph = new PieGraph(400,200,"auto");
$graph->legend->Pos(0.1,0.2);
$graph->SetMarginColor("white");
// Create pie plot
$p1 = new PiePlot3d($datay);
$p1->SetTheme("sand");
$p1->SetCenter(0.4);
$p1->SetAngle(45);
$p1->SetHeight(20);
$p1->value->SetFont(FF_ARIAL,FS_NORMAL,12);
$p1->SetLegends($datax);
$p1->Explode($datapices);
$graph->Add($p1);
$graph->Stroke();
#####################################################################
?>
Hacked By AnonymousFox1.0, Coded By AnonymousFox