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/votanti_graf.php

    r105 r346  
    99include ("jpgraph.php");
    1010include ("jpgraph_pie.php");
    11 
     11require_once ('jpgraph_pie3d.php');
    1212$e=$_GET['e'];$f=$_GET['f'];$e1=$_GET['e1'];$f1=$_GET['f1'];
    1313$titolo=$_GET['titolo'];
    1414if (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';
     15if (isset($_GET['x'])) $dim_x=$_GET['x']; else $dim_x='450';
     16if (isset($_GET['y'])) $dim_y=$_GET['y']; else $dim_y='300';
    1717if (isset($_GET['logo'])) $logo=$_GET['logo'];else $logo='';
    1818$data = array($e,$f);
     
    2020$graph = new PieGraph($dim_x,$dim_y,"auto");
    2121$graph->SetShadow();
    22 
     22$theme_class= new VividTheme;
     23$graph->SetTheme($theme_class);
    2324$graph->title->Set($titolo);
    2425$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);
    2728$graph->SetBackgroundImage("../images/$logo",BGIMG_COPY);
    2829
    2930$graph->SetBackgroundGradient('red','yellow',GRAD_HOR,BGRAD_MARGIN);
    3031
    31 $p1 = new PiePlot($data);
     32$p1 = new PiePlot3D($data);
    3233$p1->value->SetFormat('');
    3334$p1->value->Show();
    3435$p1->SetLegends($legend);
    35 $p1->SetCenter(0.45,0.5);
     36$p1->SetCenter(0.65,0.35);
    3637
    3738$graph->Add($p1);
     39$p1->ExplodeSlice(1);
    3840$graph->Stroke();
    3941
Note: See TracChangeset for help on using the changeset viewer.