source: trunk/xgraph/jpgraph/Examples/radarmarkex1.php @ 42

Last change on this file since 42 was 42, checked in by marrucho, 10 years ago
File size: 945 bytes
Line 
1<?php // content="text/plain; charset=utf-8"
2require_once ('jpgraph/jpgraph.php');
3require_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?>
Note: See TracBrowser for help on using the repository browser.