Inizializzazione
This commit is contained in:
22
jpgraph-3.5.0b1/src/Examples/manscaleex4.php
Normal file
22
jpgraph-3.5.0b1/src/Examples/manscaleex4.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php // content="text/plain; charset=utf-8"
|
||||
require_once ('jpgraph/jpgraph.php');
|
||||
require_once ('jpgraph/jpgraph_line.php');
|
||||
|
||||
$ydata = array(12,17,22,19,5,15);
|
||||
|
||||
$graph = new Graph(220,200);
|
||||
$graph->SetScale("textlin",3,35);
|
||||
$graph->yscale->SetAutoTicks();
|
||||
|
||||
$graph->title->Set('Manual scale, allow adjustment');
|
||||
$graph->title->SetFont(FF_FONT1,FS_BOLD);
|
||||
|
||||
$line = new LinePlot($ydata);
|
||||
$graph->Add($line);
|
||||
|
||||
// Output graph
|
||||
$graph->Stroke();
|
||||
|
||||
?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user