Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
include ("../jpgraph.php");
3
include ("../jpgraph_pie.php");
4
 
5
$data = array(40,60,21,33);
6
 
7
$graph = new PieGraph(300,200,"auto");
8
$graph->SetShadow();
9
 
10
$graph->title->Set("A simple Pie plot");
11
$graph->title->SetFont(FF_FONT1,FS_BOLD);
12
 
13
$p1 = new PiePlot($data);
14
$p1->SetLegends($gDateLocale->GetShortMonth());
15
$p1->SetCenter(0.4);
16
$p1->SetValueType(PIE_VALUE_ABS);
17
$p1->value->SetFormat('%d');
18
$graph->Add($p1);
19
$graph->Stroke();
20
 
21
?>
22
 
23