source: trunk/client/modules/Elezioni/grafici-old/torta.php@ 2

Last change on this file since 2 was 2, checked in by root, 15 years ago

importo il progetto

File size: 950 bytes
Line 
1<?php
2/************************************************************************/
3/* Eleonline - Raccolta e diffusione dei dati elettorali */
4/* by Luciano Apolito & Roberto Gigli */
5/* http://www.eleonline.it */
6/* info@eleonline.it luciano@aniene.net rgigli@libero.it */
7/************************************************************************/
8
9include ("jpgraph.php");
10include ("jpgraph_pie.php");
11include ("jpgraph_pie3d.php");
12
13$data = array($a,$b,$c,$d);
14$legend = array(_VALIDI,_NULLI,_BIANCHI,_CONTESTATI);
15$graph = new PieGraph(330,200,"auto");
16$graph->SetShadow();
17
18$graph->title->Set("A simple 3D Pie plot");
19$graph->title->SetFont(FF_FONT1,FS_BOLD);
20
21$p1 = new PiePlot3D($data);
22$p1->ExplodeSlice(1);
23$p1->SetCenter(0.45);
24$p1->SetLegends($legend);
25$graph ->img->SetImgFormat( "png");
26$graph->Add($p1);
27$graph->Stroke();
28
29
30?>
31
32
Note: See TracBrowser for help on using the repository browser.