source: trunk/xgraph/jpgraph/Examples/radarex4.php

Last change on this file was 42, checked in by marrucho, 10 years ago
File size: 660 bytes
Line 
1<?php // content="text/plain; charset=utf-8"
2require_once ('jpgraph/jpgraph.php');
3require_once ('jpgraph/jpgraph_radar.php');
4
5// Some data to plot
6$data = array(55,80,26,31,95);
7
8// Create the graph and the plot
9$graph = new RadarGraph(250,200);
10
11// Add a drop shadow to the graph
12$graph->SetShadow();
13
14// Create the titles for the axis
15$titles = $gDateLocale->GetShortMonth();
16$graph->SetTitles($titles);
17
18// Add grid lines
19$graph->grid->Show();
20$graph->grid->SetLineStyle('dashed');
21
22$plot = new RadarPlot($data);
23$plot->SetFillColor('lightblue');
24
25// Add the plot and display the graph
26$graph->Add($plot);
27$graph->Stroke();
28?>
Note: See TracBrowser for help on using the repository browser.