Affichage graphique

Bonjour,

Je suis en train de créer une page qui contient des tableaux et des graphiques (librairie artichow). Lorsqu'on ouvre la page, le tableau s'affiche mais pas le graphique :s
J'ai essayé sur une page le graphique seul et il s'affiche très bien donc je ne comprends pas pourquoi lorsque j'ajoute un tableau, ça ne fonctionne plus du tout :(

Voici mon code :

<?php

echo "<p align='center'>Nombre de locations de DVD</p>";

echo "Les 3 jours les plus important";
echo "<br>";
echo "<table border='4'>";
echo "<td><font COLOR='Orange'><b>JOUR";
echo "</font><br>NOMBRE</b></td>";
echo "<td><div align='middle'><font COLOR='Orange'><b>1997-08-15";
echo "</font><br>4061</b></td>";
echo "<td><div align='middle'><font COLOR='Orange'><b>1996-08-02";
echo "</font><br>3874</b></td>";
echo "<td><div align='middle'><font COLOR='Orange'><b>1998-07-27";
echo "</font><br>3788</b></td>";
echo "</table></br>";

echo "Les 3 années les plus importantes";
echo "<br>";
echo "<table border='4'>";
echo "<td><font COLOR='Orange'><b>ANNEES";
echo "</font><br>NOMBRE</b></td>";
echo "<td><div align='middle'><font COLOR='Orange'><b>1992";
echo "</font><br>76745</b></td>";
echo "<td><div align='middle'><font COLOR='Orange'><b>1993";
echo "</font><br>63311</b></td>";
echo "<td><div align='middle'><font COLOR='Orange'><b>1994";
echo "</font><br>31722</b></td>";
echo "</table>";
?>

<?php
require_once "../../BarPlot.class.php";

$graph->title->set('The title');
$graph->border->setStyle(Line::DASHED);
$graph->border->setColor(new DarkGray);

$values = array(19, 42, 15, -25, 3);

$plot = new BarPlot($values);
$plot->setSize(1, 0.96);
$plot->setCenter(0.5, 0.52);

$plot->setBarColor(
new VeryLightPurple(25)
);
$graph = new Graph(400, 400);
$graph->add($plot);
$graph->draw();
?>

Ce qui m'affiche : L'image "http ://localhost/Artichow-php5/page_graf.php" ne peut être affichée car elle contient des erreurs.

Mais je ne vois pas lesquelles :(
Comment pourrait-on faire pour que le graphique s'affiche ?

Merci d'avance.

2 réponses

  1. Personne pour m'aider ?? :(
    0
    1. C'est bon, c'est résolu ;)
      0