Bonjour je cherche a faire un camembert en récupérant les données de ma base voici ce que j'ai commencé a faire mais qui ne marche pas : 
	
	
	
		
si quelqu'un connait la methode je n'ai pas trouvé comment faire même sur le forum du site d'artichow.
				
			
		Code:
	
	<?php
include ('connection.php');
$sql="SELECT * FROM pannes WHERE jour ='Lundi'";
$resultat = mysql_query ($sql);
$nblignes = mysql_num_rows($resultat); 
$graph = new Graph(400, 250);
$graph->setAntiAliasing(TRUE);
$graph->title->set("Statistiques des pannes par jour");
$graph->title->border->show();
$graph->title->setBackgroundColor(new LightRed(60));
$graph->title->setPadding(3, 3, 3, 3);
$values = array($nblignes, 1, 6, 2, 10);
$colors = array(
	new LightOrange,
	new LightPurple,
	new LightBlue,
	new LightRed,
	new LightPink
);
$plot = new Pie($values, $colors);
$plot->setSize(0.70, 0.60);
$plot->setCenter(0.40, 0.55);
$plot->set3D(10);
$plot->setBorderColor(new LightGray);
$plot->setLegend(array(
	'lundi',
	'Mardi',
	'Mercredi',
	'Jeudi',
	'Vendredi'
));
$plot->legend->setPosition(1.30);
$graph->add($plot);
$graph->draw();
?>si quelqu'un connait la methode je n'ai pas trouvé comment faire même sur le forum du site d'artichow.

 
     
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		 
 
		