$plot->value->SetMargin(10); $plot->value->Show(); } // Add the data plot to the graph $graph->Add($plot); } elseif ($options['graph_type'] == 'radar') { require_once "{$jpgraph}/jpgraph_radar.php"; $background = "white"; $incref = false; // Setup graph $graph = new RadarGraph($width, 250, "auto"); //$graph->SetShadow(); $graph->SetFrame(false); $graph->title->Set($data['title']); $graph->title->SetFont(FF_FONT1, FS_BOLD); $graph->SetMarginColor($background); $graph->img->SetMargin(40, 30, 20, 40); $graph->SetTitles($data['legend']); $graph->SetCenter(0.5, 0.55); $graph->HideTickMarks(); $graph->SetColor($background); $graph->grid->SetColor('darkgray'); $graph->grid->Show(); $graph->axis->title->SetMargin(5); $graph->SetGridDepth(DEPTH_BACK); $graph->SetSize(0.6); $plot = new RadarPlot($data['values']); $color = $options['graph_color']; $plot->SetColor($color); $plot->SetLineWeight(1); $plot->mark->SetType(MARK_IMG_SBALL, 'red');