[42] | 1 | <?php // content="text/plain; charset=utf-8" |
---|
| 2 | require_once ('jpgraph/jpgraph.php'); |
---|
| 3 | require_once ('jpgraph/jpgraph_radar.php'); |
---|
| 4 | |
---|
| 5 | $titles=array('Planning','Quality','Time','RR','CR','DR'); |
---|
| 6 | $data=array(18, 40, 70, 90, 42,66); |
---|
| 7 | |
---|
| 8 | $graph = new RadarGraph (300,280); |
---|
| 9 | |
---|
| 10 | $graph->title->Set('Radar with marks'); |
---|
| 11 | $graph->title->SetFont(FF_VERDANA,FS_NORMAL,12); |
---|
| 12 | |
---|
| 13 | $graph->SetTitles($titles); |
---|
| 14 | $graph->SetCenter(0.5,0.55); |
---|
| 15 | $graph->HideTickMarks(); |
---|
| 16 | $graph->SetColor('lightgreen@0.7'); |
---|
| 17 | $graph->axis->SetColor('darkgray'); |
---|
| 18 | $graph->grid->SetColor('darkgray'); |
---|
| 19 | $graph->grid->Show(); |
---|
| 20 | |
---|
| 21 | $graph->axis->title->SetFont(FF_ARIAL,FS_NORMAL,12); |
---|
| 22 | $graph->axis->title->SetMargin(5); |
---|
| 23 | $graph->SetGridDepth(DEPTH_BACK); |
---|
| 24 | $graph->SetSize(0.6); |
---|
| 25 | |
---|
| 26 | $plot = new RadarPlot($data); |
---|
| 27 | $plot->SetColor('red@0.2'); |
---|
| 28 | $plot->SetLineWeight(1); |
---|
| 29 | $plot->SetFillColor('red@0.7'); |
---|
| 30 | |
---|
| 31 | $plot->mark->SetType(MARK_IMG_SBALL,'red'); |
---|
| 32 | |
---|
| 33 | $graph->Add($plot); |
---|
| 34 | $graph->Stroke(); |
---|
| 35 | ?> |
---|