forked from halo-battle/game
Version 1.12
This commit is contained in:
parent
2a066a7498
commit
de31cd3e9a
1373 changed files with 156282 additions and 45238 deletions
45
onyx2/include/jpgraph/Examples/radarex6.1.php
Normal file
45
onyx2/include/jpgraph/Examples/radarex6.1.php
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
<?php
|
||||
include ("../jpgraph.php");
|
||||
include ("../jpgraph_radar.php");
|
||||
|
||||
// Some data to plot
|
||||
$data = array(55,80,26,31,95);
|
||||
$data2 = array(15,50,46,39,25);
|
||||
|
||||
// Create the graph and the plot
|
||||
$graph = new RadarGraph(250,200,"auto");
|
||||
|
||||
// Add a drop shadow to the graph
|
||||
$graph->SetShadow();
|
||||
|
||||
// Create the titles for the axis
|
||||
$titles = $gDateLocale->GetShortMonth();
|
||||
$graph->SetTitles($titles);
|
||||
$graph->SetColor('lightyellow');
|
||||
|
||||
// ADjust the position to make more room
|
||||
// for the legend
|
||||
$graph->SetCenter(0.4,0.55);
|
||||
$graph->SetSize(0.6);
|
||||
|
||||
// Add grid lines
|
||||
$graph->grid->Show();
|
||||
$graph->grid->SetColor('darkred');
|
||||
$graph->grid->SetLineStyle('dotted');
|
||||
|
||||
$plot = new RadarPlot($data);
|
||||
$plot->SetFillColor('lightblue');
|
||||
$plot->SetLegend("QA results");
|
||||
|
||||
$plot2 = new RadarPlot($data2);
|
||||
$plot2->SetLegend("Target");
|
||||
$plot2->SetColor('red');
|
||||
$plot2->SetFill(false);
|
||||
$plot2->SetLineWeight(2);
|
||||
|
||||
|
||||
// Add the plot and display the graph
|
||||
$graph->Add($plot);
|
||||
$graph->Add($plot2);
|
||||
$graph->Stroke();
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue