Inizializzazione
This commit is contained in:
35
jpgraph-3.5.0b1/src/Examples/radarex6.php
Normal file
35
jpgraph-3.5.0b1/src/Examples/radarex6.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php // content="text/plain; charset=utf-8"
|
||||
require_once ('jpgraph/jpgraph.php');
|
||||
require_once ('jpgraph/jpgraph_radar.php');
|
||||
|
||||
// Some data to plot
|
||||
$data = array(55,80,26,31,95);
|
||||
|
||||
// Create the graph and the plot
|
||||
$graph = new RadarGraph(250,200);
|
||||
|
||||
// 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.45,0.5);
|
||||
|
||||
// Add grid lines
|
||||
$graph->grid->Show();
|
||||
$graph->grid->SetColor('darkred');
|
||||
$graph->grid->SetLineStyle('dashed');
|
||||
|
||||
$plot = new RadarPlot($data);
|
||||
$plot->SetFillColor('lightblue');
|
||||
$plot->SetLegend("QA results");
|
||||
|
||||
// Add the plot and display the graph
|
||||
$graph->Add($plot);
|
||||
$graph->Stroke();
|
||||
?>
|
||||
Reference in New Issue
Block a user