From 0ec510a5cd68923655f62495ee146b63914e4612 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sun, 16 Nov 2003 16:47:50 +0000 Subject: [PATCH] Modif structure des graphiques --- htdocs/commande/stats/month.php | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/htdocs/commande/stats/month.php b/htdocs/commande/stats/month.php index 91f3890dcf9..3e02ff80d96 100644 --- a/htdocs/commande/stats/month.php +++ b/htdocs/commande/stats/month.php @@ -44,21 +44,19 @@ $dir = DOL_DOCUMENT_ROOT; //////////////////////// -$res = $stats->getNbCommandeByMonth($year); +$data = $stats->getNbCommandeByMonth($year); -$data = array(); - -for ($i = 1 ; $i < 13 ; $i++) -{ - $data[$i-1] = array(strftime("%b",mktime(12,12,12,$i,1,$year)), $res[$i]); -} $filev = "/document/images/commande.png"; $px = new Graph(); +$px->SetWidth(450); +$px->SetHeight(280); $px->SetYLabel("Nombre de commande"); $px->draw($dir.$filev, $data, $year); +///// + $res = $stats->getCommandeAmountByMonth($year); $data = array();