Bonjour , je n'arrive pas a afficher mes x et y avec artichow via cette requette,
Merci de votre aide
Modifié par outage (08 Feb 2010 - 14:41)
Merci de votre aide
<?php
require_once "Artichow/BarPlot.class.php";
require_once "../Connections/bookpro.php";
$graph = new Graph(550, 400);
$sql = "SELECT date_format(date_on, '%d') as ma_date, date_format(heure,'%H') as mon_heure FROM cliquetel";
$result = mysql_query( $sql,$bookpro ) or die ( mysql_error() );
while ($resultat = mysql_fetch_array($result))
{$values[] = $resultat['ma_date'];}
{$values2[] = $resultat['mon_heure'];}
$plot = new BarPlot($values);
$y = array($values2);
$plot->setBarGradient(
new LinearGradient(
new LightBlue(25),
new VeryLightOrange(25),
90
)
);
$plot->setSpace(5, 5, NULL, NULL);
$plot->barShadow->setSize(4);
$plot->barShadow->setPosition(Shadow::RIGHT_TOP);
$plot->barShadow->setColor(new Color(180, 180, 180, 10));
$plot->barShadow->smooth(TRUE);
$y =($values2);
$plot->xAxis->setLabelText($y);
$plot->xAxis->label->setFont(new Tuffy(7));
$graph->add($plot);
$graph->draw();
?>


Modifié par outage (08 Feb 2010 - 14:41)