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
$graph->title->set('The title');
14
$graph->border->setStyle(Line::DASHED);
15
$graph->border->setColor(new DarkGray);
16
 
17
$values = array(19, 42, 15, -25, 3);
18
 
19
$plot = new BarPlot($values);
20
$plot->setSize(1, 0.96);
21
$plot->setCenter(0.5, 0.52);
22
 
23
$plot->setBarColor(
24
	new VeryLightPurple(25)
25
);
26
 
27
$graph->add($plot);
28
$graph->draw();
29
 
30
?>