~pablocapeluto/cds-php/devel-3.1

« back to all changes in this revision

Viewing changes to jpgraph/src/Examples/example27.1.php

  • Committer: pcapeluto at gmail
  • Date: 2010-08-20 17:51:08 UTC
  • Revision ID: pcapeluto@gmail.com-20100820175108-jyi8dbyj15uy9p4i
Initial import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
include ("../jpgraph.php");
 
3
include ("../jpgraph_pie.php");
 
4
include ("../jpgraph_pie3d.php");
 
5
 
 
6
$data = array(40,60,21,33);
 
7
 
 
8
$graph = new PieGraph(300,200,"auto");
 
9
$graph->SetShadow();
 
10
 
 
11
$graph->title->Set("A simple Pie plot");
 
12
$graph->title->SetFont(FF_FONT1,FS_BOLD);
 
13
 
 
14
$p1 = new PiePlot3D($data);
 
15
$p1->SetAngle(20);
 
16
$p1->SetSize(0.5);
 
17
$p1->SetCenter(0.45);
 
18
$p1->SetLegends($gDateLocale->GetShortMonth());
 
19
 
 
20
$graph->Add($p1);
 
21
$graph->Stroke();
 
22
 
 
23
?>
 
24
 
 
25