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
|
|
@ -1,35 +0,0 @@
|
|||
<?php
|
||||
|
||||
include ("../jpgraph.php");
|
||||
include ("../jpgraph_bar.php");
|
||||
include ("../jpgraph_line.php");
|
||||
|
||||
|
||||
$ydata = array(12,15,22,19,5);
|
||||
|
||||
$graph = new Graph(400,200);
|
||||
$graph->img->SetMargin(40,80,40,40);
|
||||
$graph->SetScale("textlin");
|
||||
$graph->SetShadow();
|
||||
|
||||
$graph->title->Set('Center the line points in bars');
|
||||
|
||||
$line = new LinePlot($ydata);
|
||||
$line->SetBarCenter();
|
||||
$line->SetWeight(2);
|
||||
|
||||
$bar = new BarPlot($ydata);
|
||||
$bar2 = new BarPlot($ydata);
|
||||
$bar2->SetFillColor("red");
|
||||
|
||||
$gbar = new GroupbarPlot(array($bar,$bar2));
|
||||
|
||||
$graph->Add($gbar);
|
||||
$graph->Add($line);
|
||||
|
||||
// Output line
|
||||
$graph->Stroke();
|
||||
|
||||
?>
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue