Ignore:
Timestamp:
Mar 30, 2021, 11:16:34 PM (3 years ago)
Author:
roby
Message:

ulteriori modifiche per adeguamento a php7
Client: aggiornamento jpgraph

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/client/modules/Elezioni/grafici/voti_graf.php

    r105 r346  
    99include ("jpgraph.php");
    1010include ("jpgraph_pie.php");
    11 
     11require_once ('jpgraph_pie3d.php');
    1212$a=$_GET['a'];$b=$_GET['b'];$c=$_GET['c'];$d=$_GET['d'];
    1313$a1=$_GET['a1'];$b1=$_GET['b1'];$c1=$_GET['c1'];$d1=$_GET['d1'];
     
    1717$data = array($a,$b,$c,$d);
    1818$legend = array("$a $a1","$b $b1", "$c $c1", "$d $d1");
    19 $graph = new PieGraph(350,250,"auto");
     19$graph = new PieGraph(450,300,"auto");
    2020$graph->SetShadow();
    21 
    22 
    23 
     21$theme_class= new VividTheme;
     22$graph->SetTheme($theme_class);
    2423$graph->title->Set($titolo);
    2524$graph->title->SetFont(FF_FONT1,FS_BOLD);
    26 $graph ->legend->Pos( 0.52,0.70,"left" ,"center");
     25$graph->legend->Pos( 0.0,0.41,"left" ,"center");
     26$graph->legend->SetColumns(1);
    2727$graph->SetBackgroundGradient('white','yellow',GRAD_HOR,BGRAD_MARGIN);
    2828
     
    3434//$graph->AdjBackgroundImage(0.4,0.3,-1);
    3535
    36 $p1 = new PiePlot($data);
     36$p1 = new PiePlot3D($data);
    3737$p1->value->SetFormat('');
    3838$p1->value->Show();
    3939$p1->SetLegends($legend);
    40 $p1->SetCenter(0.25,0.65);
     40$p1->SetCenter(0.65,0.35);
    4141$graph->Add($p1);
     42$p1->ExplodeSlice(1);
    4243$graph->Stroke();
    43 
    44 
    45 
    46 
    47 
    48 
    49 $graph->Add($p1);
    50 $graph->Stroke();
    51 
    52 
    53 
    54 
    5544
    5645?>
Note: See TracChangeset for help on using the changeset viewer.