Location: PHPKode > projects > Monyet > plotter/jpgraph-2.2/src/Examples/radarmarkex1.php
<?php
include ("../jpgraph.php"); 
include ("../jpgraph_radar.php");

$titles=array('Planning','Quality','Time','RR','CR','DR');
$data=array(18, 40, 70, 90, 42,66);

$graph = new RadarGraph (300,280,"auto"); 

$graph->title->Set("Radar with marks");
$graph->title->SetFont(FF_VERDANA,FS_NORMAL,12);

$graph->SetTitles($titles);
$graph->SetCenter(0.5,0.55);
$graph->HideTickMarks(); 
$graph->SetColor('hide@address.com');
$graph->axis->SetColor('darkgray'); 
$graph->grid->SetColor('darkgray');
$graph->grid->Show();

$graph->axis->title->SetFont(FF_ARIAL,FS_NORMAL,12);
$graph->axis->title->SetMargin(5);
$graph->SetGridDepth(DEPTH_BACK);
$graph->SetSize(0.6);

$plot = new RadarPlot($data);
$plot->SetColor('hide@address.com');
$plot->SetLineWeight(1);
$plot->SetFillColor('hide@address.com');

$plot->mark->SetType(MARK_IMG_SBALL,'red');

$graph->Add($plot);
$graph->Stroke();
?>
Return current item: Monyet