Line | |
---|
1 | <?php // content="text/plain; charset=utf-8"
|
---|
2 | require_once ('jpgraph/jpgraph.php');
|
---|
3 | require_once ('jpgraph/jpgraph_radar.php');
|
---|
4 |
|
---|
5 | // Some data to plot
|
---|
6 | $data = array(55,80,46,71,95);
|
---|
7 |
|
---|
8 | // Create the graph and the plot
|
---|
9 | $graph = new RadarGraph(300,200);
|
---|
10 |
|
---|
11 | $graph->title->Set('Weekly goals');
|
---|
12 | $graph->subtitle->Set('Year 2003');
|
---|
13 |
|
---|
14 | $plot = new RadarPlot($data);
|
---|
15 | $plot->SetFillColor('lightred');
|
---|
16 | $graph->SetSize(0.6);
|
---|
17 | $graph->SetPos(0.5,0.6);
|
---|
18 | // Add the plot and display the graph
|
---|
19 | $graph->Add($plot);
|
---|
20 | $graph->Stroke();
|
---|
21 | ?>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.