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).

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.