SetShadow(); $graph->title->SetFont(FF_FONT2,FS_BOLD); $graph->legend->SetPos(0.05,0.05,'right','TOP'); $p1 = new PiePlot3D($dataPolling); $p1->value->SetFormat("%1.1f%%"); $p1->value->Show(); $txt = new Text($data[tanya]); $txt->SetWordWrap(35); $txt->SetFont(FF_FONT2,FS_NORMAL); $txt->setPos(0.05,0.05,'LEFT','top'); $txt->Show(); $p1->SetAngle(30); $p1->SetSize(0.5); $p1->SetCenter(0.50,0.60); $p1->SetSliceColors(array('red','green','blue','yellow')); $p1->SetLegends($option); $graph->Add($txt); $graph->Add($p1); $graph->Stroke(); ?>