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 "../Pie.class.php";
11
 
12
 
13
$graph = new Graph(400, 250);
14
 
15
$graph->title->set("Pie (example 10) - Just a pie");
16
$graph->title->setFont(new Tuffy(10));
17
 
18
$values = array(8, 4, 6, 1, 2, 3, 4);
19
 
20
$plot = new Pie($values);
21
$plot->set3D(10);
22
 
23
$plot->legend->hide(TRUE);
24
$plot->label->hide(TRUE);
25
 
26
$graph->add($plot);
27
$graph->draw();
28
 
29
?>