SetShadow(); $graph->title->Set($titolo); $graph->title->SetFont(FF_FONT1,FS_BOLD); $graph ->legend->Pos( 0.05,0.65,"left" ,"center"); //$graph->SetBackgroundGradient('white','yellow',GRAD_HOR,BGRAD_MARGIN); $txt =new Text("$cop"); //$txt =new Text("$siteistat"); $txt->Pos( 2,180); $txt->SetColor( "red"); $graph->AddText( $txt); if(isset($logo)) $graph->SetBackgroundImage("../images/".$logo.".png",BGIMG_COPY); else $graph->SetBackgroundImage("../images/vuoto.jpg",BGIMG_COPY); // black-white //$graph->AdjBackgroundImage(0.4,0.3,-1); $p1 = new PiePlot($data); $p1->SetLabelType(PIE_VALUE_PER); $p1->value->SetFormat(''); $p1->value->Show(); $p1->SetLegends($legend); $p1->SetCenter(0.7,0.4); $graph->Add($p1); $graph->Stroke(); $graph->Add($p1); $graph->Stroke(); ?>