} //$plot->SetFont(FF_VERDANA,FS_BOLD); //$plot->SetFontColor("darkred"); $plot->SetSize(0.3); $plot->setCenter($options['graph_pie_center']); if (count($data['legend'] > 10)) { $i = 0; foreach ($data['legend'] as $key => $val) { if ($i > 10) { unset($data['legend'][$key]); } $i++; } } $plot->SetLegends($data['legend']); $plot->setTheme($options['graph_pie_theme']); if ($options['graph_plotshadow']) { $plot->SetShadow(); } //$plot->SetStartAngle(M_PI/8); //printr($options['graph_pie_explode_pos']); switch ($options['graph_pie_explode']) { case 'all': $plot->ExplodeAll(10); break; case 'pos': $plot->ExplodeSlice((int) $options['graph_pie_explode_pos']); break; } $graph->Add($plot); } elseif ($options['graph_type'] == 'bars') {