/usr/share/doc/libphp-jpgraph-examples/examples/spiderex6.php is in libphp-jpgraph-examples 1.5.2-12.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | <?php
include ("/usr/share/jpgraph/jpgraph.php");
include ("/usr/share/jpgraph/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);
$graph->Add($plot2);
$graph->Stroke();
?>
|