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
39
onyx2/include/jpgraph/Examples/filledstepstyleex1.php
Normal file
39
onyx2/include/jpgraph/Examples/filledstepstyleex1.php
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
<?php
|
||||
|
||||
include("../jpgraph.php");
|
||||
include("../jpgraph_line.php");
|
||||
|
||||
// create the graph
|
||||
$graph= new Graph(400,250,"auto");
|
||||
|
||||
$ydata = array(5,10,15,20,15,10);
|
||||
|
||||
$graph->SetScale("textlin");
|
||||
$graph->SetShadow(true);
|
||||
$graph->SetMarginColor("antiquewhite");
|
||||
$graph->img->SetMargin(60,40,40,50);
|
||||
$graph->img->setTransparent("white");
|
||||
$graph->xaxis->SetFont(FF_FONT1);
|
||||
$graph->xaxis->setTextTickInterval(1);
|
||||
$graph->xaxis->SetTextLabelInterval(1);
|
||||
$graph->legend->SetFillColor("antiquewhite");
|
||||
$graph->legend->SetShadow(true);
|
||||
$graph->legend->SetLayout(LEGEND_VERT);
|
||||
$graph->legend->Pos(0.02,0.01);
|
||||
$graph->title->Set("Step Styled Example");
|
||||
$graph->title->SetFont(FF_FONT1,FS_BOLD);
|
||||
|
||||
$lineplot = new LinePlot($ydata);
|
||||
$lineplot->SetColor("black");
|
||||
$lineplot->setFillColor("gray7");
|
||||
$lineplot->SetStepStyle();
|
||||
$lineplot->SetLegend(" 2002 ");
|
||||
|
||||
// add plot to the graph
|
||||
$graph->Add($lineplot);
|
||||
$graph->ygrid->show(false,false);
|
||||
|
||||
// display graph
|
||||
$graph->Stroke();
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue