Diagramme stat en PHP
Fermé
mimir87uk
Messages postés
20
Date d'inscription
mardi 9 juin 2009
Statut
Membre
Dernière intervention
5 juin 2012
-
27 juin 2009 à 01:43
Utilisateur anonyme - 27 juin 2009 à 10:27
Utilisateur anonyme - 27 juin 2009 à 10:27
A voir également:
- Forfait p.stat web
- Windir stat - Télécharger - Gestion de fichiers
- Easy php - Télécharger - Divers Web & Internet
- Diagramme excel - Guide
- Diagramme word - Guide
- Diagramme camembert excel - Guide
1 réponse
Utilisateur anonyme
27 juin 2009 à 10:27
27 juin 2009 à 10:27
tu peux pour cela utliser la librairie jpgraph (gratuite), qui est assez simple d'utilisation :
exemple :
tu a ici plein d'exemples de diagrammes : http://enacit1.epfl.ch/php/jpgraph/src/Examples/testsuit.php?type=2
exemple :
<?php include('lib/JpGraph.php'); include('lib/JpGraph_line.php'); $ydata = array(6, 25, 3, 12, 13, 30, 2, 3); $xdata = array(0, 1, 2, 3, 4, 5, 6, 7); $graph = new Graph(300,200); $graph->SetScale('textlin'); $graph->title->Set('Titre'); $graph->xaxis->title->Set('Titre axe X'); $graph->yaxis->title->Set('Titre axe Y'); $graph->legend->Pos(0.5,0.5, 'right', 'center'); $lineplot = new LinePLot($ydata, $xdata); $graph->Add($lineplot); $graph->Stroke(); ?>
tu a ici plein d'exemples de diagrammes : http://enacit1.epfl.ch/php/jpgraph/src/Examples/testsuit.php?type=2