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
33
jpgraph/Examples/barpatternex1.php
Normal file
33
jpgraph/Examples/barpatternex1.php
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
<?php
|
||||
|
||||
include ("../jpgraph.php");
|
||||
include ("../jpgraph_bar.php");
|
||||
include ("../jpgraph_line.php");
|
||||
|
||||
$datay=array(2,3,5,8.5,11.5,6,3);
|
||||
|
||||
// Create the graph.
|
||||
$graph = new Graph(350,300);
|
||||
|
||||
$graph->SetScale("textlin");
|
||||
|
||||
$graph->SetMarginColor('navy:1.9');
|
||||
$graph->SetBox();
|
||||
|
||||
$graph->title->Set('Bar Pattern');
|
||||
$graph->title->SetFont(FF_ARIAL,FS_BOLD,20);
|
||||
|
||||
$graph->SetTitleBackground('lightblue:1.3',TITLEBKG_STYLE2,TITLEBKG_FRAME_BEVEL);
|
||||
$graph->SetTitleBackgroundFillStyle(TITLEBKG_FILLSTYLE_HSTRIPED,'lightblue','blue');
|
||||
|
||||
// Create a bar pot
|
||||
$bplot = new BarPlot($datay);
|
||||
$bplot->SetFillColor('darkorange');
|
||||
$bplot->SetWidth(0.6);
|
||||
|
||||
$bplot->SetPattern(PATTERN_CROSS1,'navy');
|
||||
|
||||
$graph->Add($bplot);
|
||||
|
||||
$graph->Stroke();
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue