forked from halo-battle/game
Version 1.9g
This commit is contained in:
parent
d028822d0b
commit
4c9814a99c
800 changed files with 237325 additions and 1949 deletions
48
jpgraph/Examples/radarex7.php
Normal file
48
jpgraph/Examples/radarex7.php
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
<?php
|
||||
include ("../jpgraph.php");
|
||||
include ("../jpgraph_radar.php");
|
||||
|
||||
// Create the basic rtadar graph
|
||||
$graph = new RadarGraph(300,200,"auto");
|
||||
|
||||
// Set background color and shadow
|
||||
$graph->SetColor("white");
|
||||
$graph->SetShadow();
|
||||
|
||||
// Position the graph
|
||||
$graph->SetCenter(0.4,0.55);
|
||||
|
||||
// Setup the axis formatting
|
||||
$graph->axis->SetFont(FF_FONT1,FS_BOLD);
|
||||
$graph->axis->SetWeight(2);
|
||||
|
||||
// Setup the grid lines
|
||||
$graph->grid->SetLineStyle("longdashed");
|
||||
$graph->grid->SetColor("navy");
|
||||
$graph->grid->Show();
|
||||
$graph->HideTickMarks();
|
||||
|
||||
// Setup graph titles
|
||||
$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"));
|
||||
// Create the first radar plot
|
||||
$plot = new RadarPlot(array(30,80,60,40,71,81,47));
|
||||
$plot->SetLegend("Goal");
|
||||
$plot->SetColor("red","lightred");
|
||||
$plot->SetFill(false);
|
||||
$plot->SetLineWeight(2);
|
||||
|
||||
// Create the second radar plot
|
||||
$plot2 = new RadarPlot(array(70,40,30,80,31,51,14));
|
||||
$plot2->SetLegend("Actual");
|
||||
$plot2->SetColor("blue","lightred");
|
||||
|
||||
// Add the plots to the graph
|
||||
$graph->Add($plot2);
|
||||
$graph->Add($plot);
|
||||
|
||||
// And output the graph
|
||||
$graph->Stroke();
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue