Changeset 346 for trunk/client/modules/Elezioni/grafici/votanti_graf.php
- Timestamp:
- Mar 30, 2021, 11:16:34 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/grafici/votanti_graf.php
r105 r346 9 9 include ("jpgraph.php"); 10 10 include ("jpgraph_pie.php"); 11 11 require_once ('jpgraph_pie3d.php'); 12 12 $e=$_GET['e'];$f=$_GET['f'];$e1=$_GET['e1'];$f1=$_GET['f1']; 13 13 $titolo=$_GET['titolo']; 14 14 if (isset($_GET['cop'])) $cop=$_GET['cop'];else $cop=''; 15 if (isset($_GET['x'])) $dim_x=$_GET['x']; else $dim_x=' 350';16 if (isset($_GET['y'])) $dim_y=$_GET['y']; else $dim_y=' 200';15 if (isset($_GET['x'])) $dim_x=$_GET['x']; else $dim_x='450'; 16 if (isset($_GET['y'])) $dim_y=$_GET['y']; else $dim_y='300'; 17 17 if (isset($_GET['logo'])) $logo=$_GET['logo'];else $logo=''; 18 18 $data = array($e,$f); … … 20 20 $graph = new PieGraph($dim_x,$dim_y,"auto"); 21 21 $graph->SetShadow(); 22 22 $theme_class= new VividTheme; 23 $graph->SetTheme($theme_class); 23 24 $graph->title->Set($titolo); 24 25 $graph->title->SetFont(FF_FONT1,FS_BOLD); 25 $graph ->legend->Pos( 0.55,0.75,"left" ,"center");26 26 $graph->legend->Pos( 0,0.41,"left" ,"center"); 27 $graph->legend->SetColumns(1); 27 28 $graph->SetBackgroundImage("../images/$logo",BGIMG_COPY); 28 29 29 30 $graph->SetBackgroundGradient('red','yellow',GRAD_HOR,BGRAD_MARGIN); 30 31 31 $p1 = new PiePlot ($data);32 $p1 = new PiePlot3D($data); 32 33 $p1->value->SetFormat(''); 33 34 $p1->value->Show(); 34 35 $p1->SetLegends($legend); 35 $p1->SetCenter(0. 45,0.5);36 $p1->SetCenter(0.65,0.35); 36 37 37 38 $graph->Add($p1); 39 $p1->ExplodeSlice(1); 38 40 $graph->Stroke(); 39 41
Note:
See TracChangeset
for help on using the changeset viewer.