Bonjour,
Voila je tourne avec easyphp 1.8 et gd2 bien installer.
J'ai récupéré des exemple d'utilisation graphique (artichow) avec gd2 mais j'ai cette erreur :
Code : Sélectionner tout - Visualiser dans une fenêtre à part Warning: Cannot modify header information - headers already sent by (output started at c:\program files\easyphp1-8\www\statistiques\test.php:8) in c:\program files\easyphp1-8\www\statistiques\Artichow\php4\Image.class.php on line 355
Voici mon code :
<?php
require_once "Artichow/LinePlot.class.php";
$graph = new Graph(400, 400);
$graph->setAntiAliasing(TRUE);
$values = array(1, 4, 5, -2.5, 3);
$plot = new LinePlot($values);
$plot->setBackgroundGradient(
new LinearGradient(
new Color(210, 210, 210),
new Color(250, 250, 250),
0
)
);
$plot->yAxis->setLabelPrecision(1);
$plot->setSpace(5, 5, NULL, NULL);
$graph->add($plot);
$graph->draw();
?>
Partager