Subversion Repositories Sites.obs-saisons.fr

Rev

Rev 5 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 aurelien 1
<?php
2
$jpgraph = "/usr/local/lib/php/jpgraph-1.17";
3
include ("$jpgraph/jpgraph.php");
4
include ("$jpgraph/jpgraph_line.php");
5
 
6
$ydata = array(12,17,22,19,5,15);
7
 
8
$graph = new Graph(220,200);
9
$graph->SetScale("textlin",3,35);
10
$graph->yscale->SetAutoTicks();
11
 
12
$graph->title->Set('Manual scale, allow adjustment');
13
$graph->title->SetFont(FF_FONT1,FS_BOLD);
14
 
15
$line = new LinePlot($ydata);
16
$graph->Add($line);
17
 
18
// Output graph
19
$graph->Stroke();
20
 
21
?>
22
 
23