IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Bibliothèques et frameworks PHP Discussion :

[JpGraph] Positionner un graphique dans un tableau


Sujet :

Bibliothèques et frameworks PHP

  1. #1
    Membre confirmé
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    77
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2007
    Messages : 77
    Par défaut [JpGraph] Positionner un graphique dans un tableau
    Bonjour à tous,
    j'utilise JPGraph pour créer des statistiques sous la forme d'un camenbert mais je n'arrive pas à le positionner dans un tableau; j'obtiens le message d'erreur suivant :Internal error: Chosen locale file for error messages does not exist. alors que si je ne l'inclus pas dans mon tableau tout fonctionne parfaitement.

    Comment faire pour alors pour positionner mon camenbert dans mon tableau ?

    Voici mon code :
    Code : 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
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
     
    <?php
    include ("../../graph/jpgraph.php");
    include ("../../graph/jpgraph_pie.php");
    $db = mysql_connect('localhost', 'root', '') or die('erreur');
    mysql_select_db('Mediatheque',$db) or die('erreur');
     
    $DVD="select FldIdRef from tblDVD";
    $DVD = mysql_query($DVD) or die('Erreur SQL !<br>'.$DVD.'<br>'.mysql_error());
    //$row_RsListeDVD = mysql_fetch_assoc($DVD);
    $totalRows_DVD = mysql_num_rows($DVD);
     
    $STV="select distinct FldIdRef from tblseriestv";
    $STV = mysql_query($STV) or die('Erreur SQL !<br>'.$STV.'<br>'.mysql_error());
    //$row_RsListeSTV = mysql_fetch_assoc($STV);
    $totalRows_STV = mysql_num_rows($STV);
     
    $VHS="select FldIdRef from tblvhs";
    $VHS = mysql_query($VHS) or die('Erreur SQL !<br>'.$VHS.'<br>'.mysql_error());
    //$row_RsListeVHS = mysql_fetch_assoc($VHS);
    $totalRows_VHS = mysql_num_rows($VHS);
     
    $data = array($totalRows_DVD,$totalRows_STV,$totalRows_VHS);
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <!-- DW6 -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Les Statistiques sur les Films</title>
    </head>
    <body
    <table width="99%" height="600" cellpadding="0" cellspacing="0" border="0">
      <tr>
    <?
    // Create the Pie Graph. 
    $graph = new PieGraph(500,350,"auto");
    $graph->SetShadow();
     
    // Set A title for the plot
    $graph->title->Set("Statistiques sur les Films");
    $graph->title->SetFont(FF_FONT1,FS_BOLD);
    // Create
    $p1 = new PiePlot($data);
    $p1->SetLegends(array("DVD","Série Télévisée","Vhs"));
    $graph->Add($p1);
    $graph->Stroke();
    ?>
    </tr></table
    </body>
    </html>
    Merci

  2. #2
    Membre confirmé
    Profil pro
    Inscrit en
    Janvier 2007
    Messages
    77
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Janvier 2007
    Messages : 77
    Par défaut
    Citation Envoyé par olivier94
    Bonjour à tous,
    j'utilise JPGraph pour créer des statistiques sous la forme d'un camenbert mais je n'arrive pas à le positionner dans un tableau; j'obtiens le message d'erreur suivant :Internal error: Chosen locale file for error messages does not exist. alors que si je ne l'inclus pas dans mon tableau tout fonctionne parfaitement.
    Comment faire pour alors pour positionner mon camenbert dans mon tableau ?

    Voici mon code :
    Code : 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
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
     
    <?php
    include ("../../graph/jpgraph.php");
    include ("../../graph/jpgraph_pie.php");
    $db = mysql_connect('localhost', 'root', '') or die('erreur');
    mysql_select_db('Mediatheque',$db) or die('erreur');
     
    $DVD="select FldIdRef from tblDVD";
    $DVD = mysql_query($DVD) or die('Erreur SQL !<br>'.$DVD.'<br>'.mysql_error());
    //$row_RsListeDVD = mysql_fetch_assoc($DVD);
    $totalRows_DVD = mysql_num_rows($DVD);
     
    $STV="select distinct FldIdRef from tblseriestv";
    $STV = mysql_query($STV) or die('Erreur SQL !<br>'.$STV.'<br>'.mysql_error());
    //$row_RsListeSTV = mysql_fetch_assoc($STV);
    $totalRows_STV = mysql_num_rows($STV);
     
    $VHS="select FldIdRef from tblvhs";
    $VHS = mysql_query($VHS) or die('Erreur SQL !<br>'.$VHS.'<br>'.mysql_error());
    //$row_RsListeVHS = mysql_fetch_assoc($VHS);
    $totalRows_VHS = mysql_num_rows($VHS);
     
    $data = array($totalRows_DVD,$totalRows_STV,$totalRows_VHS);
    ?>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <!-- DW6 -->
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Les Statistiques sur les Films</title></head>
    <body
    <table width="99%" height="600" cellpadding="0" cellspacing="0" border="0">
      <tr>
    <?
    // Create the Pie Graph. 
    $graph = new PieGraph(500,350,"auto");
    $graph->SetShadow();
     
    // Set A title for the plot
    $graph->title->Set("Statistiques sur les Films");
    $graph->title->SetFont(FF_FONT1,FS_BOLD);
    // Create
    $p1 = new PiePlot($data);
    $p1->SetLegends(array("DVD","Série Télévisée","Vhs"));
    $graph->Add($p1);
    $graph->Stroke();
    ?>
    </tr></table>
    </body>
    </html>
    Merci

Discussions similaires

  1. positionner un scroll dans un tableau en javascript
    Par air75 dans le forum Général JavaScript
    Réponses: 1
    Dernier message: 28/05/2009, 13h47
  2. [XHTML] Positionnement du texte dans un tableau
    Par Jihnn dans le forum Balisage (X)HTML et validation W3C
    Réponses: 2
    Dernier message: 11/11/2006, 18h26
  3. Positionner un calque dans un tableau
    Par loan33 dans le forum Mise en page CSS
    Réponses: 15
    Dernier message: 29/10/2006, 17h04
  4. [ImageMagick] Positionner des intervalles dans un tableau
    Par myomyo dans le forum Bibliothèques et frameworks
    Réponses: 98
    Dernier message: 22/05/2006, 10h48
  5. [JpGraph] Intégration du graphique dans la page courante
    Par jbr_85 dans le forum Bibliothèques et frameworks
    Réponses: 8
    Dernier message: 16/03/2006, 10h35

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo