Bonjour

Je m'arrache les cheveux pour faire afficher les libellés sur un camembert Highcharts.
Les données sont issues d'une base mysql et j'ai ajouté un menu déroulant qui permet de sélectionner un 'id'.
Ca marche sauf pour les libellés, qui font apparaitre "Slice : XX%"
Nom : probleme highcharts.png
Affichages : 649
Taille : 19,0 Ko

Merci de votre aide
Olivier

Voici le code php :
Code php : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//select database
mysql_select_db("hagroupejioli", $con);
 
$id = $_GET['id'];
 
$arr 	= array();
$arr1 	= array();
$result = array();
 
$sql = "select categorie, `2014` from higcharts_data where adherent_id = '$id'";
$q	 = mysql_query($sql);
$j = 0;
while($row = mysql_fetch_array($q)){
 
	$arr['data'][] = $row['categorie'];
	$arr1['data'][] = $row['2014'];
}
 
 
array_push($result,$arr1);
 
print json_encode($result, JSON_NUMERIC_CHECK);
 
mysql_close($con);