<?php
require_once ('jpgraph/jpgraph.php');
require_once ('jpgraph/jpgraph_log.php');
require_once ('jpgraph/jpgraph_radar.php');
$data = array(242,58,1500,12,1397,810,373);
$data2 = array(447,176,1472,191,1616,42,46);
$graph = new RadarGraph(300,350);
$graph->SetScale('log');
$graph->title->SetFont(FF_ARIAL,FS_BOLD,16);
$graph->title->Set('Logarithmic scale');
$graph->title->SetMargin(10);
$graph->SetPlotSize(0.8);
$graph->SetCenter(0.5,0.55);
$graph->yscale->ticks->SetMarkColor('black','darkgray');
$graph->axis->title->SetFont(FF_ARIAL,FS_BOLD,14);
$graph->axis->title->SetColor('darkred:0.8');
$graph->axis->SetColor('blue');
$plot = new RadarPlot($data);
$plot->SetLineWeight(1);
$plot->SetColor('forestgreen');
$plot->SetFillColor('forestgreen@0.9');
$plot2 = new RadarPlot($data2);
$plot2->SetLineWeight(2);
$plot2->SetColor('red');
$plot2->SetFillColor('red@0.9');
$graph->Add($plot);
$graph->Add($plot2);
$graph->Stroke();
?> |