<?php

include "../jpgraph.php";
include "../jpgraph_spider.php";
// Some data to plot
$data = array(55, 80, 46, 21, 95);
$data2 = array(65, 95, 50, 75, 60);
$axtitles = array("Jan", "Feb", "Mar", "Apr", "May");
// Create the graph and the plot
$graph = new SpiderGraph(250, 200, "auto");
$graph->img->SetAntiAliasing("white");
$plot = new SpiderPlot($data);
$plot->SetLegend("Defects");
$plot2 = new SpiderPlot($data2);
$plot2->SetFill(false);
$plot2->SetLineWeight(2);
$plot2->SetColor("red");
$plot2->SetLegend("Target");
// Set position and size
$graph->SetCenter(0.5, 0.55);
$graph->SetTitles($axtitles);
$graph->title->Set("Result 2001");
$graph->title->SetFont(FF_FONT1, FS_BOLD);
$graph->SupressTickMarks();
$graph->SetShadow();
//$graph->SetColor("teal");
$graph->grid->SetLineStyle("solid");
$graph->grid->SetColor("blue");
$graph->grid->Show();
// Add the plot and display the graph
//$graph->Add($plot);
<?php

include "../jpgraph.php";
include "../jpgraph_spider.php";
$graph = new SpiderGraph(300, 200, "auto");
$graph->SetColor("white");
$graph->SetShadow();
$graph->SetCenter(0.4, 0.55);
$graph->axis->SetFont(FF_FONT1, FS_BOLD);
$graph->axis->SetWeight(2);
$graph->grid->SetLineStyle("longdashed");
$graph->grid->SetColor("navy");
$graph->grid->Show();
$graph->SupressTickMarks();
$graph->title->Set("Quality result");
$graph->title->SetFont(FF_FONT1, FS_BOLD);
$graph->SetTitles(array("One", "Two", "Three", "Four", "Five", "Sex", "Seven", "Eight", "Nine", "Ten"));
$plot = new SpiderPlot(array(30, 80, 60, 40, 71, 81, 47));
$plot->SetLegend("Goal");
$plot->SetColor("red", "lightred");
$plot->SetFill(false);
$plot->SetLineWeight(2);
$plot2 = new SpiderPlot(array(70, 40, 30, 80, 31, 51, 14));
$plot2->SetLegend("Actual");
$plot2->SetColor("blue", "lightred");
$graph->Add($plot2);
$graph->Add($plot);
$graph->Stroke();