Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
include ("../jpgraph.php");
3
include ("../jpgraph_line.php");
4
 
5
$datay = array(11,30,20,13,10,'x',16,12,'x',15,4,9);
6
 
7
// Setup the graph
8
$graph = new Graph(400,250);
9
$graph->SetScale('intlin');
10
$graph->title->Set('Filled line with NULL values');
11
//Make sure data starts from Zero whatever data we have
12
$graph->yscale->SetAutoMin(0);
13
 
14
$p1 = new LinePlot($datay);
15
$p1->SetFillColor('lightblue');
16
$graph->Add($p1);
17
 
18
// Output line
19
$graph->Stroke();
20
 
21
?>
22
 
23