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 "../Pattern.class.php";
3
require_once "../Graph.class.php";
4
 
5
$graph = new Graph(300, 200);
6
 
7
// Set title
8
$graph->title->set('Pattern 1');
9
$graph->title->move(100, 0);
10
$graph->title->setFont(new Tuffy(9));
11
$graph->title->setColor(new DarkRed);
12
 
13
$pattern = Pattern::get('BarDepth');
14
$pattern->setArgs(array(
15
	'yForeground' => array(5, 3, 4, 7, 6, 5, 8, 4, 7, NULL, NULL),
16
	'yBackground' => array(NULL, NULL, 4, 5, 6, 4, 2, 3, 7, 5, 4),
17
	'legendForeground' => '2003',
18
	'legendBackground' => '2004'
19
));
20
 
21
$group = $pattern->create();
22
 
23
$graph->add($group);
24
$graph->draw();
25
 
26
?>