diff --git a/scripts/cron/fournisseur-graph.php b/scripts/cron/fournisseur-graph.php index 4910611696a..07e26f0d127 100644 --- a/scripts/cron/fournisseur-graph.php +++ b/scripts/cron/fournisseur-graph.php @@ -65,7 +65,8 @@ if ($resql) while ($row = $db->fetch_row($resql)) { $fdir = $dir.'/'.get_exdir($row[0],3); - print $fdir."\n"; + if ($verbose) + print $fdir."\n"; create_exdir($fdir); $fournisseurs[$row[0]] = $fdir; } @@ -119,7 +120,6 @@ foreach ($fournisseurs as $id => $fdir) function graph_datas($file, $title, $values, $legends) { - $graph = new Graph(500, 200); $graph->title->set($title); $graph->title->setFont(new Tuffy(10)); @@ -131,11 +131,8 @@ function graph_datas($file, $title, $values, $legends) $graph->setAntiAliasing(TRUE); $graph->setBackgroundColor( $color ); - //$plot->yAxis->title->set("euros"); - $plot = new BarPlot($values); - $plot->setBarGradient( new LinearGradient( new Color(244,244,244), @@ -151,12 +148,10 @@ function graph_datas($file, $title, $values, $legends) $plot->barShadow->setColor(new Color(180, 180, 180, 10)); $plot->barShadow->smooth(TRUE); - - $plot->xAxis->setLabelText($legends); - $plot->xAxis->label->setFont(new Tuffy(7)); + $plot->xAxis->setLabelText($legends); + $plot->xAxis->label->setFont(new Tuffy(7)); $graph->add($plot); - $graph->draw($file); } ?>