1 | <?php // content="text/plain; charset=utf-8" |
---|
2 | require_once ('jpgraph/jpgraph.php'); |
---|
3 | require_once ('jpgraph/jpgraph_radar.php'); |
---|
4 | |
---|
5 | $graph = new RadarGraph(300,300); |
---|
6 | $graph->SetScale('lin',0,50); |
---|
7 | $graph->yscale->ticks->Set(25,5); |
---|
8 | $graph->SetColor('white'); |
---|
9 | $graph->SetShadow(); |
---|
10 | |
---|
11 | $graph->SetCenter(0.5,0.55); |
---|
12 | |
---|
13 | $graph->axis->SetFont(FF_FONT1,FS_BOLD); |
---|
14 | $graph->axis->SetWeight(2); |
---|
15 | |
---|
16 | // Uncomment the following lines to also show grid lines. |
---|
17 | $graph->grid->SetLineStyle('dashed'); |
---|
18 | $graph->grid->SetColor('navy@0.5'); |
---|
19 | $graph->grid->Show(); |
---|
20 | |
---|
21 | $graph->ShowMinorTickMarks(); |
---|
22 | |
---|
23 | $graph->title->Set('Quality result'); |
---|
24 | $graph->title->SetFont(FF_FONT1,FS_BOLD); |
---|
25 | $graph->SetTitles(array('One','Two','Three','Four','Five','Sex','Seven','Eight','Nine','Ten')); |
---|
26 | |
---|
27 | $plot = new RadarPlot(array(12,35,20,30,33,15,37)); |
---|
28 | $plot->SetLegend('Goal'); |
---|
29 | $plot->SetColor('red','lightred'); |
---|
30 | $plot->SetFillColor('lightblue'); |
---|
31 | $plot->SetLineWeight(2); |
---|
32 | |
---|
33 | $graph->Add($plot); |
---|
34 | $graph->Stroke(); |
---|
35 | |
---|
36 | ?> |
---|