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_bar.php");
4
include ("../jpgraph_line.php");
5
 
6
$datay=array(5,3,11,6,3);
7
 
8
$graph = new Graph(400,300,'auto');
9
$graph->SetScale("textlin");
10
 
11
$graph->title->Set('Images on top of bars');
12
$graph->title->SetFont(FF_VERA,FS_BOLD,13);
13
 
14
$graph->SetTitleBackground('lightblue:1.1',TITLEBKG_STYLE1,TITLEBKG_FRAME_BEVEL);
15
 
16
$bplot = new BarPlot($datay);
17
$bplot->SetFillColor("orange");
18
$bplot->SetWidth(0.5);
19
 
20
$lplot = new LinePlot($datay);
21
//$lplot->SetColor('white@1');
22
$lplot->SetBarCenter();
23
$lplot->mark->SetType(MARK_IMG_LBALL,'red');
24
 
25
$graph->Add($bplot);
26
$graph->Add($lplot);
27
 
28
$graph->Stroke();
29
?>