Subversion Repositories Applications.gtt

Rev

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

Rev Author Line No. Line
60 jpm 1
<?php
2
require_once "../../LinePlot.class.php";
3
 
4
$graph = new Graph(400, 400);
5
 
6
$graph->setAntiAliasing(FALSE);
7
 
8
$values = array(1, 4, 5, -2.5, 3);
9
$plot = new LinePlot($values);
10
$plot->setBackgroundGradient(
11
	new LinearGradient(
12
		new Color(210, 210, 210),
13
		new Color(250, 250, 250),
14
 
15
	)
16
);
17
$plot->yAxis->setLabelPrecision(1);
18
$plot->setSpace(5, 5, NULL, NULL);
19
 
20
$graph->add($plot);
21
$graph->draw();
22
?>