Changeset 105 for trunk/client/modules/Elezioni/grafici
- Timestamp:
- May 29, 2011, 7:05:03 PM (13 years ago)
- Location:
- trunk/client/modules/Elezioni/grafici
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/client/modules/Elezioni/grafici/barre.php
r64 r105 41 41 $right = 40; 42 42 $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 47 45 $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); 49 48 // Setup title 50 49 $graph->title->Set("$titolo"); … … 118 117 // Now create a bar pot 119 118 $bplot = new BarPlot($datay); 120 $bplot->SetFillColor(" orange");119 $bplot->SetFillColor("red"); 121 120 $bplot->SetShadow(); 122 121 … … 126 125 // We want to display the value of each bar at the top 127 126 $bplot->value->Show(); 128 $bplot->value->SetFont(CURFONT1,FS_BOLD,1 2);127 $bplot->value->SetFont(CURFONT1,FS_BOLD,14); 129 128 $bplot->value->SetAlign('left','center'); 130 $bplot->value->SetColor(" black","darkred");129 $bplot->value->SetColor("red","yellow"); 131 130 $bplot->value->SetFormat("%.2f %%"); # %"); 132 131 -
trunk/client/modules/Elezioni/grafici/raffrontiperc.php
r2 r105 8 8 $altro=$_GET['altro']; 9 9 $desc=$_GET['desc']; 10 $logo=$_GET['logo']; 10 11 $grp1=$_GET['grp1'];$grp2=$_GET['grp2'];$grp3=$_GET['grp3']; 11 12 … … 37 38 //$graph->Set3DPerspective(SKEW3D_RIGHT,650,470,true); 38 39 39 $graph->SetBackgroundImage("../images/ logo.jpg",BGIMG_COPY);40 $graph->SetBackgroundImage("../images/$logo",BGIMG_COPY); 40 41 //$graph->SetBackgroundCountryFlag('ital',BGIMG_COPY,20); 41 42 -
trunk/client/modules/Elezioni/grafici/raffrontivoto.php
r2 r105 7 7 $altro=$_GET['altro']; 8 8 $desc=$_GET['desc']; 9 $logo=$_GET['logo']; 9 10 $grp1=$_GET['grp1'];$grp2=$_GET['grp2'];$grp3=$_GET['grp3']; 10 11 … … 33 34 $graph->legend->Pos(0.03,0.2,"right","center"); 34 35 35 36 $graph->SetBackgroundImage("../images/logo.jpg",BGIMG_COPY);36 $graph->SetBackgroundImage("../images/$logo",BGIMG_COPY); 37 //$graph->SetBackgroundImage("../images/logo.jpg",BGIMG_COPY); 37 38 //$graph->SetBackgroundCountryFlag('ital',BGIMG_COPY,20); 38 39 -
trunk/client/modules/Elezioni/grafici/votanti_graf.php
r2 r105 23 23 $graph->title->Set($titolo); 24 24 $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"); 42 26 43 $graph-> AddText( $txt);27 $graph->SetBackgroundImage("../images/$logo",BGIMG_COPY); 44 28 45 */ 46 $graph->SetBackgroundGradient('white','yellow',GRAD_HOR,BGRAD_MARGIN); 29 $graph->SetBackgroundGradient('red','yellow',GRAD_HOR,BGRAD_MARGIN); 47 30 48 31 $p1 = new PiePlot($data); … … 50 33 $p1->value->Show(); 51 34 $p1->SetLegends($legend); 52 $p1->SetCenter(0.4 ,0.5);35 $p1->SetCenter(0.45,0.5); 53 36 54 37 $graph->Add($p1); -
trunk/client/modules/Elezioni/grafici/voti_graf.php
r2 r105 24 24 $graph->title->Set($titolo); 25 25 $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"); 27 27 $graph->SetBackgroundGradient('white','yellow',GRAD_HOR,BGRAD_MARGIN); 28 28 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 45 33 // black-white 46 34 //$graph->AdjBackgroundImage(0.4,0.3,-1); … … 50 38 $p1->value->Show(); 51 39 $p1->SetLegends($legend); 52 $p1->SetCenter(0.25,0. 4);40 $p1->SetCenter(0.25,0.65); 53 41 $graph->Add($p1); 54 42 $graph->Stroke();
Note:
See TracChangeset
for help on using the changeset viewer.