Subversion Repositories Applications.annuaire

Compare Revisions

Ignore whitespace Rev 440 → Rev 441

/branches/v1.2-autel/controleurs/StatistiqueControleur.php
78,8 → 78,8
$tableau_france_autres = array('France (%1.2f%%)' => $inscrits_france, 'Autres (%1.2f%%)' => $somme_autres_pays);
 
$graph_france = $this->statistiques->genererGraphique(Statistiques::GRAPH_CAMEMBERT, $tableau_france_autres, '', array(320, 200));
$graph_autres = $this->statistiques->genererGraphique(Statistiques::GRAPH_CAMEMBERT, $nb_inscrits_par_legende, '', array(950, 900));
$graph = $this->statistiques->combinerGraphiques($graph_france, $graph_autres, array(920, 1100));
$graph_autres = $this->statistiques->genererGraphique(Statistiques::GRAPH_CAMEMBERT, $nb_inscrits_par_legende, '', array(930, 900));
$graph = $this->statistiques->combinerGraphiques($graph_france, $graph_autres, array(940, 1110));
return $this->dessinerGraph($graph);
}
/branches/v1.2-autel/composants/statistiques/Statistiques.php
43,7 → 43,7
include_once $this->chemin_lib_graph.'jpgraph_pie.php';
$legendes = array_keys($valeurs);
$valeurs = array_values($valeurs);
 
//die('<pre>'.print_r($valeurs, true).'</pre>');
$oPie = new PiePlot($valeurs);
$oPie->SetLegends($legendes);
// position du graphique (légèrement à droite)
134,7 → 134,7
//$xpos3=3;$ypos3=1000;
$mgraph->Add($graph1,$xpos1,$ypos1);
$mgraph->Add($graph2,$xpos2,$ypos2);
//$mgraph->SetShadow();
$mgraph->SetShadow();
//$mgraph->Add($graph['experience_bota'],$xpos3,$ypos3);
return $mgraph;
}