Camembert avec un Artichow
sunnyhill
Messages postés
8
Date d'inscription
Statut
Membre
Dernière intervention
-
sunnyhill Messages postés 8 Date d'inscription Statut Membre Dernière intervention -
sunnyhill Messages postés 8 Date d'inscription Statut Membre Dernière intervention -
bonjour
Bonjour j'ai un problème avec mon code
<?php
$sqll='select COUNT(*) from resultat where MOY<10';
$resultat = mysql_query($sqll);
$ligneRequete1 = mysql_fetch_row($resultat);
echo 'Il y a '.$ligneRequete1[0].' membre(s) ';
?>
<br/>
<?php
<?php
$sqll='select COUNT(*) from resultat where MOY>10';
$resultat = mysql_query($sqll);
$ligneRequete2 = mysql_fetch_row($resultat);
echo 'Il y a '.$ligneRequete2[0].' membre(s) ';
?>
<?php
echo "la moyenne entre 10 et 11 ";
$sqll='select COUNT(*) from resultat where MOY between 10 and 11';
$resultat = mysql_query($sqll);
$ligneRequete3 = mysql_fetch_row($resultat);
echo 'Il y a '.$ligneRequete3[0].' membre(s) ';
?>
<?php
require_once('Artichow-php5/Pie.class.php');
$graph = new Graph(400, 250);
$graph->setAntiAliasing(TRUE);
$graph->title->set("Statistiques des ");
$graph->title->border->show();
$graph->title->setBackgroundColor(new LightRed(60));
$graph->title->setPadding(3, 3, 3, 3);$values = array($ligneRequete1 , $ligneRequete2 , $ligneRequete3 );
$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(
'MOY<10',
'MOY>10',
'MOY<11',
));
$plot->legend->setPosition(1.30);
$graph->add($plot);
?>
je me retrouve ce message
L'image //localhost/stat/ ne peut pas être affiché car elle contient des erreurs.
Répondre
Bonjour j'ai un problème avec mon code
<?php
$sqll='select COUNT(*) from resultat where MOY<10';
$resultat = mysql_query($sqll);
$ligneRequete1 = mysql_fetch_row($resultat);
echo 'Il y a '.$ligneRequete1[0].' membre(s) ';
?>
<br/>
<?php
<?php
$sqll='select COUNT(*) from resultat where MOY>10';
$resultat = mysql_query($sqll);
$ligneRequete2 = mysql_fetch_row($resultat);
echo 'Il y a '.$ligneRequete2[0].' membre(s) ';
?>
<?php
echo "la moyenne entre 10 et 11 ";
$sqll='select COUNT(*) from resultat where MOY between 10 and 11';
$resultat = mysql_query($sqll);
$ligneRequete3 = mysql_fetch_row($resultat);
echo 'Il y a '.$ligneRequete3[0].' membre(s) ';
?>
<?php
require_once('Artichow-php5/Pie.class.php');
$graph = new Graph(400, 250);
$graph->setAntiAliasing(TRUE);
$graph->title->set("Statistiques des ");
$graph->title->border->show();
$graph->title->setBackgroundColor(new LightRed(60));
$graph->title->setPadding(3, 3, 3, 3);$values = array($ligneRequete1 , $ligneRequete2 , $ligneRequete3 );
$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(
'MOY<10',
'MOY>10',
'MOY<11',
));
$plot->legend->setPosition(1.30);
$graph->add($plot);
?>
je me retrouve ce message
L'image //localhost/stat/ ne peut pas être affiché car elle contient des erreurs.
Répondre
A voir également:
- Camembert avec un Artichow
- Comment faire un camembert sur excel - Guide
- Faire un graphique camembert en ligne - Guide
- Excel camembert pourcentage ✓ - Forum Excel
- Pourcentage avec valeur négative dans un graphique - Forum Excel
- Graphique excel en fonction de données couleur ✓ - Forum Excel
2 réponses
Bonjour,
La première partie avec SQL est OK....
Pour la seconde partie, je vous suggérerai plutot RGRAPH qui est une librairie Javascript:
https://html5.immo-scope.com/article/rgraph_graphesEnCamembert
Cordialement
La première partie avec SQL est OK....
Pour la seconde partie, je vous suggérerai plutot RGRAPH qui est une librairie Javascript:
https://html5.immo-scope.com/article/rgraph_graphesEnCamembert
Cordialement
sunnyhill
Messages postés
8
Date d'inscription
Statut
Membre
Dernière intervention
j ai utilisé librairie RGraph et mm exemple mais rien