Jpgraph

Fermé
Thyirys10 Messages postés 1 Date d'inscription jeudi 10 décembre 2015 Statut Membre Dernière intervention 10 décembre 2015 - 10 déc. 2015 à 07:06
bonjour à tous !
Je veux créer un graphique avec PHP 5 et jpgraph 2.2 mais j'arrive pas à l'afficher.

voiçi mon code

<?php

require("src/jpgraph.php");
require("src/jpgraph_line.php");

$graph = new Graph(300, 200);
$graph->SetScale("intint");

$ydata = array(2, 6, 12, 6, 8, 1, 9, 13, 5, 7, 14);

$courbe = new LinePlot($ydata);
$courbe->SetColor("red");

$graph->Add($courbe);

$graph->Stroke();

?>

Le navigateur affiche ce message : L'image << http://localhost/jpgraph/graph.php >> ne peut pas être affichée car elle contient des erreurs.