Diagramme gerifisch mit PHP

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • Diagramme gerifisch mit PHP

    Ich habe di jpgraph libary gefunden und mir mal angeschaut. Die Beispiele haben mich sehr überzeugt. Jetzt will ich selber sowas machen und die Werte für das array aus ner DB holen.
    Nur das funktioneiert leider net. Kann mir da jemand helfen ?
    Oder kennt jemand anderes ne Grafiklibary (kostenlos) für Diagramm, wo er mir dann helfen kann

  • #2
    Wenn dir jemand helfen soll, wäre es gut, wenn näher darauf eingegangen wird, was nicht funktioniert. Das Array aus der DB zu holen, oder die Bibliothek.

    Programmcode, wo der Fehler auftritt ist auch oft hilfreich...

    Kommentar


    • #3
      die libary funktionert aber die Werte für das Array aus der DB zu holen
      PHP-Code:
      <?php

      include ("jpgraph.php");
      include (
      "jpgraph_bar.php");

      // Some data
      $datay1=array(10,110,60);
      $datay2=array(350,90,190);
      $datay3=array(60,70,140);

      // Create the basic graph
      $graph = new Graph(750,550,'auto');    
      $graph->SetScale("textlin");
      $graph->img->SetMargin(40,80,30,40);

      // Adjust the position of the legend box
      $graph->legend->Pos(0.02,0.15);

      // Adjust the color for theshadow of the legend
      $graph->legend->SetShadow('darkgray@0.5');
      $graph->legend->SetFillColor('lightblue@0.3');
      usw.

      wie ändere ich die Zeile $datay1=array(10,110,60); ab ???
      EDIT:
      php.tags by wotan
      Zuletzt geändert von Wotan; 25.06.2003, 17:37.

      Kommentar


      • #4
        hat mir keiner ne Antwort ?

        Kommentar


        • #5
          und der Code wo Du das Array aus der DB befüllen willst? Vllt liegt da der Fehler?

          Kommentar

          Lädt...
          X