Blame view

site/jpgraph/Examples/radarex2.php 513 Bytes
8ec98c9f   Guillaume   MAJ
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  <?php // content="text/plain; charset=utf-8"
  require_once ('jpgraph/jpgraph.php');
  require_once ('jpgraph/jpgraph_radar.php');
  	
  // Some data to plot
  $data = array(55,80,46,71,95);
  	
  // Create the graph and the plot
  $graph = new RadarGraph(300,200);
  
  $graph->title->Set('Weekly goals');
  $graph->subtitle->Set('Year 2003');
  
  $plot = new RadarPlot($data);
  $plot->SetFillColor('lightred');
  $graph->SetSize(0.6);
  $graph->SetPos(0.5,0.6);
  // Add the plot and display the graph
  $graph->Add($plot);
  $graph->Stroke();
  ?>