SetShadow(); $graph->title->Set($titolo); $graph->title->SetFont(FF_FONT1,FS_BOLD); $graph ->legend->Pos( 0.05,0.75,"left" ,"center"); /* if(isset($logo)){ if (file_exists("../images/".$logo.".png")) { $graph->SetBackgroundImage("../images/".$logo.".png",BGIMG_COPY); }else{ else $graph->SetBackgroundImage("../images/vuoto.jpg",BGIMG_COPY); } */ // testo /* $txt =new Text("$cop"); $txt->SetFont(FF_FONT1,FS_BOLD); //$txt->Pos(0.5,0.97,'center','bottom'); $txt->SetBox('yellow','black'); $txt->Pos( 2,2,'center'); $txt->SetColor( "black"); $graph->AddText( $txt); */ $graph->SetBackgroundGradient('white','yellow',GRAD_HOR,BGRAD_MARGIN); $p1 = new PiePlot($data); $p1->value->SetFormat(''); $p1->value->Show(); $p1->SetLegends($legend); $p1->SetCenter(0.4,0.5); $graph->Add($p1); $graph->Stroke(); ?>