Modif structure des graphiques

This commit is contained in:
Rodolphe Quiedeville 2003-11-16 16:47:50 +00:00
parent 587ed6743d
commit 0ec510a5cd

View File

@ -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();