SetShadow(); } $graph->SetMarginColor("silver"); $graph->img->SetAntiAliasing("black"); // Set A title for the plot $graph->title->Set($title); //$graph->title->SetFont(FF_TIMES,FS_NORMAL,18); $graph->title->SetFont(FF_FONT1,FS_BOLD); $graph->title->SetColor("black"); // $graph->legend->Pos(0.05,0.2); $graph->legend->Pos($lposx,$lposy); // Create 3D pie plot $p1 = new PiePlot3d($data); $p1->SetTheme($theme); $p1->SetCenter(0.35); $p1->SetSize($gprum); // Adjust projection angle $p1->SetAngle(45); // Adjsut angle for first slice $p1->SetStartAngle(45); // Display the slice values $p1->value->Show(); //$p1->value->SetFont(FF_ARIAL,FS_NORMAL,12); $p1->value->SetColor("black"); $p1->value->SetFormat("%d%%"); // Add colored edges to the 3D pie // NOTE: You can't have exploded slices with edges! //$p1->SetEdge("black"); $p1->SetFont(FF_ARIAL,FS_NORMAL,12); $p1->SetLegends($titles); $graph->Add($p1); $unid=md5( $_SESSION["username"] .Date("HisdMY") .Rand(1,100).$cnt).".png"; $graph->Stroke("inc/jpgraph/tmp/".$unid); $_SESSION["numtemp"]++; $_SESSION["temp"][$_SESSION["numtemp"]]="inc/jpgraph/tmp/".$unid; $gap=""; $c_counter++; return $gap; } ?>",$url,$def); $def=Str_replace("