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
/*
3
 * This work is hereby released into the Public Domain.
4
 * To view a copy of the public domain dedication,
5
 * visit http://creativecommons.org/licenses/publicdomain/ or send a letter to
6
 * Creative Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.
7
 *
8
 */
9
 
10
require_once "../BarPlot.class.php";
11
 
12
$graph = new Graph(400, 400);
13
 
14
$values = array(2, 6, 3, 2, 4);
15
 
16
$plot = new BarPlot($values);
17
 
18
$plot->setBarGradient(
19
	new LinearGradient(
20
		new LightBlue(25),
21
		new VeryLightOrange(25),
22
		90
23
	)
24
);
25
 
26
$plot->setSpace(5, 5, NULL, NULL);
27
 
28
$plot->barShadow->setSize(4);
29
$plot->barShadow->setPosition(Shadow::RIGHT_TOP);
30
$plot->barShadow->setColor(new Color(180, 180, 180, 10));
31
$plot->barShadow->smooth(TRUE);
32
 
33
 
34
$graph->add($plot);
35
$graph->draw();
36
 
37
?>