begin process at 2010 02 10 02:34:44
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

Graphique

 > CRÉATION DE T'IT GRAPHS

CRÉATION DE T'IT GRAPHS


 Information sur la source

Note :
5 / 10 - par 2 personnes
5,00 / 10

  • 1

  • 2

  • 3

  • 4

  • 5

  • 6

  • 7

  • 8

  • 9

  • 10
Catégorie :Graphique Niveau :Débutant Date de création :22/01/2003 Date de mise à jour :23/01/2003 20:43:54 Vu / téléchargé :3 222 / 256

Auteur : squaly

Ecrire un message privé
Commentaire sur cette source (5)
Ajouter un commentaire et/ou une note

 Description

fonction de création toute bête de graph vertical.

Source

  • //$i index de la couleur (vous venez d'une boucle pour afficher...)
  • //$totpartic population globale répondant à la question
  • // $t_totanswers population concernée par cette réponse
  • function graph_vert($t_totanswers,$totpartic,$i)
  • {
  • $t_color = array ( // pour les barres de couleurs
  • "0" => "hgreen.gif",
  • "1" => "hblue.gif",
  • "3" => "hbrown.gif",
  • "2" => "hgold.gif",
  • "4" => "horange.gif ",
  • "5" => "hpink.gif ",
  • "6" => "hcuivre.gif ",
  • "7" => "hgreen.gif ",
  • "8" => "hblue.gif",
  • "9" => "hbrown.gif",
  • "10" => "hgold.gif",
  • "11" => "haqua.gif ",
  • "12" => "hpink.gif ",
  • "13" => "hcuivre.gif ",
  • "14" => "hgreen.gif",
  • "15" => "hblue.gif",
  • "16" => "hbrown.gif",
  • "17" => "hgreen.gif",
  • "18" => "hblue.gif",
  • "19" => "hbrown.gif",
  • "20" => "hgold.gif",
  • "21" => "horange.gif ",
  • "22" => "hpink.gif ",
  • "23" => "hcuivre.gif ",
  • "24" => "hgreen.gif ",
  • "25" => "hblue.gif",
  • "26" => "hbrown.gif",
  • "27" => "hgold.gif",
  • "28" => "haqua.gif ",
  • "29" => "hpink.gif ",
  • "30" => "hcuivre.gif ",
  • "31" => "haqua.gif");
  • $totanswer = pourcent($t_totanswers,$totpartic);//fonction pour calculer le pourcentage, vous devriez y arriver sans oim ;)
  • //echo "<font><i><strong>$prop</strong> : ($t_totanswers / $totpartic)</i></font> <br>"; // label de la réponse
  • // affichage d'un graph
  • $imgize = (300* $totanswer)/100 ;// gestion de l'échelle du graph
  • echo"<td width='20'><div align='center'><img src='$t_color[$i]' width='20' height='$imgize' alt='$totanswer %($t_totanswers/$totpartic)'></div></td>";
  • }
//$i index de la couleur (vous venez d'une boucle pour afficher...)
//$totpartic population globale répondant à la question
// $t_totanswers population concernée par cette réponse
function graph_vert($t_totanswers,$totpartic,$i)
{
   $t_color = array ( // pour les barres de couleurs
       "0" => "hgreen.gif",
       "1" => "hblue.gif",
       "3" => "hbrown.gif",
       "2" => "hgold.gif",
       "4" => "horange.gif ",
       "5" => "hpink.gif ",
       "6" => "hcuivre.gif ",
       "7" => "hgreen.gif ",
       "8" => "hblue.gif",
       "9" => "hbrown.gif",
       "10" => "hgold.gif",
       "11" => "haqua.gif ",
       "12" => "hpink.gif ",
       "13" => "hcuivre.gif ",
       "14" => "hgreen.gif",
       "15" => "hblue.gif",
       "16" => "hbrown.gif",
       "17" => "hgreen.gif",
       "18" => "hblue.gif",
       "19" => "hbrown.gif",
       "20" => "hgold.gif",
       "21" => "horange.gif ",
       "22" => "hpink.gif ",
       "23" => "hcuivre.gif ",
       "24" => "hgreen.gif ",
       "25" => "hblue.gif",
       "26" => "hbrown.gif",
       "27" => "hgold.gif",
       "28" => "haqua.gif ",
       "29" => "hpink.gif ",
       "30" => "hcuivre.gif ",
       "31" => "haqua.gif");

         $totanswer = pourcent($t_totanswers,$totpartic);//fonction pour calculer le pourcentage, vous devriez y arriver sans oim ;)
          //echo "<font><i><strong>$prop</strong> :  ($t_totanswers / $totpartic)</i></font> <br>";  // label de la réponse
          // affichage d'un graph
          $imgize = (300* $totanswer)/100 ;// gestion de l'échelle du graph

echo"<td width='20'><div align='center'><img src='$t_color[$i]' width='20' height='$imgize' alt='$totanswer %($t_totanswers/$totpartic)'></div></td>";



} 


 Fichier Zip

Les Membres Club peuvent télécharger directement un fichier contenu dans le zip sans télécharger le zip en entier !

Télécharger le zip


 Sources du même auteur

Source avec Zip TROUVER UN ENREGISTREMENT ALÉATOIREMENT PARMIS N
GRAPHIQUES
Source avec Zip CALENDAR...

 Sources de la même categorie

Source avec Zip RECHERCHE DE MOTIF DANS UNE IMAGE par ParseError
BARRES PARAMÉTRABLES EN DÉGRADÉ DE COULEUR ET AVEC TEXTE DA... par hornetbzz
Source avec Zip Source avec une capture GALERIE PHOTO SIMPLE À GÉRER par francky6691
Source avec Zip Source avec une capture DIAPORAMA AVEC AJOUT ET REDIMENSIONEMENT DE PHOTOS, CRÉATION... par giloum
Source avec Zip Source avec une capture AFFICHAGE INFOBULLE SUR GRAPHIQUE ARTICHOW par nirronico

Commentaires et avis

Commentaire de matrey le 23/01/2003 18:54:15

zip, zip, zip... c'est plus pratique

Commentaire de squaly le 23/01/2003 19:49:05

ok, je mettrais aussi le couleurs... ;)

Commentaire de matrey le 24/01/2003 20:58:32

merci, et bart remonte ton short STP ;-)

Commentaire de squaly le 25/01/2003 00:00:47

nan, j'ai le luc en feu ;) vive les brikets...

Commentaire de crazygogo le 16/07/2008 15:53:56

http://www.phpcs.com/codes/STATISTIQUE-GRAPHIQUE-COMPOSANT-ARTICHOW_47171.aspx

 Ajouter un commentaire




Nos sponsors


Sondage...

CalendriCode

Février 2010
LMMJVSD
1234567
891011121314
15161718192021
22232425262728

Consulter la suite du CalendriCode

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 1,576 sec (4)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales