Ignore:
Timestamp:
May 29, 2011, 7:05:03 PM (13 years ago)
Author:
eol
Message:

Sistemazione elementi grafici e di esportazione dati, stemma sui grafici (var nel config.php $ins_logo=0 per eliminare lo stemma).

Location:
trunk/client/modules/Elezioni/grafici
Files:
5 edited

Legend:

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

    r64 r105  
    4141$right = 40;
    4242$graph->Set90AndMargin($left,$right,$top,$bottom);
    43 #if(isset($logo)) $graph->SetBackgroundImage("../images/".$logo.".png",BGIMG_COPY);
    44 #else
    45 //$graph->SetBackgroundImage("../images/vuoto.jpg",BGIMG_COPY);
    46 // Nice shadow
     43//$graph->SetBackgroundImage("../images/$logo",BGIMG_COPY);
     44
    4745$graph->SetShadow();
    48 $graph->SetBackgroundGradient('white','yellow',GRAD_HOR,BGRAD_MARGIN);
     46$graph->SetBackgroundGradient('yellow','white',GRAD_HOR,BGRAD_MARGIN);
     47//$graph->SetBackgroundImage("../images/$logo",BGIMG_COPY);
    4948// Setup title
    5049$graph->title->Set("$titolo");
     
    118117// Now create a bar pot
    119118$bplot = new BarPlot($datay);
    120 $bplot->SetFillColor("orange");
     119$bplot->SetFillColor("red");
    121120$bplot->SetShadow();
    122121
     
    126125// We want to display the value of each bar at the top
    127126$bplot->value->Show();
    128 $bplot->value->SetFont(CURFONT1,FS_BOLD,12);
     127$bplot->value->SetFont(CURFONT1,FS_BOLD,14);
    129128$bplot->value->SetAlign('left','center');
    130 $bplot->value->SetColor("black","darkred");
     129$bplot->value->SetColor("red","yellow");
    131130$bplot->value->SetFormat("%.2f %%"); #  %");
    132131
  • trunk/client/modules/Elezioni/grafici/raffrontiperc.php

    r2 r105  
    88$altro=$_GET['altro'];
    99$desc=$_GET['desc'];
     10$logo=$_GET['logo'];
    1011$grp1=$_GET['grp1'];$grp2=$_GET['grp2'];$grp3=$_GET['grp3'];
    1112
     
    3738//$graph->Set3DPerspective(SKEW3D_RIGHT,650,470,true);
    3839
    39 $graph->SetBackgroundImage("../images/logo.jpg",BGIMG_COPY);
     40$graph->SetBackgroundImage("../images/$logo",BGIMG_COPY);
    4041//$graph->SetBackgroundCountryFlag('ital',BGIMG_COPY,20);
    4142
  • trunk/client/modules/Elezioni/grafici/raffrontivoto.php

    r2 r105  
    77$altro=$_GET['altro'];
    88$desc=$_GET['desc'];
     9$logo=$_GET['logo'];
    910$grp1=$_GET['grp1'];$grp2=$_GET['grp2'];$grp3=$_GET['grp3'];
    1011
     
    3334$graph->legend->Pos(0.03,0.2,"right","center");
    3435
    35 
    36 $graph->SetBackgroundImage("../images/logo.jpg",BGIMG_COPY);
     36$graph->SetBackgroundImage("../images/$logo",BGIMG_COPY);
     37//$graph->SetBackgroundImage("../images/logo.jpg",BGIMG_COPY);
    3738//$graph->SetBackgroundCountryFlag('ital',BGIMG_COPY,20);
    3839
  • trunk/client/modules/Elezioni/grafici/votanti_graf.php

    r2 r105  
    2323$graph->title->Set($titolo);
    2424$graph->title->SetFont(FF_FONT1,FS_BOLD);
    25 $graph ->legend->Pos( 0.05,0.75,"left" ,"center");
    26 /*
    27 if(isset($logo)){
    28       if (file_exists("../images/".$logo.".png")) {
    29           $graph->SetBackgroundImage("../images/".$logo.".png",BGIMG_COPY);
    30       }else{
    31           else $graph->SetBackgroundImage("../images/vuoto.jpg",BGIMG_COPY);
    32 }
    33 */
    34 // testo
    35 /*
    36 $txt =new Text("$cop");
    37 $txt->SetFont(FF_FONT1,FS_BOLD);
    38 //$txt->Pos(0.5,0.97,'center','bottom');
    39 $txt->SetBox('yellow','black');
    40 $txt->Pos( 2,2,'center');
    41 $txt->SetColor( "black");
     25$graph ->legend->Pos( 0.55,0.75,"left" ,"center");
    4226
    43 $graph->AddText( $txt);
     27$graph->SetBackgroundImage("../images/$logo",BGIMG_COPY);
    4428
    45 */
    46 $graph->SetBackgroundGradient('white','yellow',GRAD_HOR,BGRAD_MARGIN);
     29$graph->SetBackgroundGradient('red','yellow',GRAD_HOR,BGRAD_MARGIN);
    4730
    4831$p1 = new PiePlot($data);
     
    5033$p1->value->Show();
    5134$p1->SetLegends($legend);
    52 $p1->SetCenter(0.4,0.5);
     35$p1->SetCenter(0.45,0.5);
    5336
    5437$graph->Add($p1);
  • trunk/client/modules/Elezioni/grafici/voti_graf.php

    r2 r105  
    2424$graph->title->Set($titolo);
    2525$graph->title->SetFont(FF_FONT1,FS_BOLD);
    26 $graph ->legend->Pos( 0.52,0.50,"left" ,"center");
     26$graph ->legend->Pos( 0.52,0.70,"left" ,"center");
    2727$graph->SetBackgroundGradient('white','yellow',GRAD_HOR,BGRAD_MARGIN);
    2828
    29 /*
    30 $txt =new Text("$cop");
    31 //$txt =new Text("$siteistat");
    32 $txt->Pos( 2,180);
    33 $txt->SetColor( "red");
    34 $graph->AddText( $txt);
    35 */
    36 if(isset($logo)){
    37       //if (file_exists("modules/Elezioni/images/".$logo.".png")) {
    38         //  $graph->SetBackgroundImage("../images/".$logo.".png",BGIMG_COPY);
    39       }
    40 /*
    41 else{
    42           else $graph->SetBackgroundImage("../images/vuoto.jpg",BGIMG_COPY);
    43 }
    44 */
     29
     30//$graph->SetBackgroundImagePos(1, 100);
     31$graph->SetBackgroundImage("../images/$logo",BGIMG_COPY);
     32
    4533// black-white
    4634//$graph->AdjBackgroundImage(0.4,0.3,-1);
     
    5038$p1->value->Show();
    5139$p1->SetLegends($legend);
    52 $p1->SetCenter(0.25,0.4);
     40$p1->SetCenter(0.25,0.65);
    5341$graph->Add($p1);
    5442$graph->Stroke();
Note: See TracChangeset for help on using the changeset viewer.