forked from halo-battle/game
Version 1.9g
This commit is contained in:
parent
d028822d0b
commit
4c9814a99c
800 changed files with 237325 additions and 1949 deletions
24
jpgraph/Examples/filledline01.php
Normal file
24
jpgraph/Examples/filledline01.php
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
include ("../jpgraph.php");
|
||||
include ("../jpgraph_line.php");
|
||||
|
||||
$datay = array(1.23,1.9,1.6,3.1,3.4,2.8,2.1,1.9);
|
||||
$graph = new Graph(300,200,'auto');
|
||||
$graph->img->SetMargin(40,40,40,40);
|
||||
$graph->SetScale("textlin");
|
||||
$graph->SetShadow();
|
||||
$graph->title->Set("Example of filled line plot");
|
||||
$graph->title->SetFont(FF_FONT1,FS_BOLD);
|
||||
|
||||
$p1 = new LinePlot($datay);
|
||||
$p1->SetFillColor("orange");
|
||||
$p1->mark->SetType(MARK_FILLEDCIRCLE);
|
||||
$p1->mark->SetFillColor("red");
|
||||
$p1->mark->SetWidth(4);
|
||||
$graph->Add($p1);
|
||||
|
||||
$graph->Stroke();
|
||||
|
||||
?>
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue