Changeset 105 for trunk/client/modules/Elezioni/grafici/votanti_graf.php
- Timestamp:
- May 29, 2011, 7:05:03 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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);
Note:
See TracChangeset
for help on using the changeset viewer.