Modification des graphs
This commit is contained in:
parent
29c5111f56
commit
a307e70154
@ -47,10 +47,11 @@ $dir = DOL_DOCUMENT_ROOT;
|
||||
$data = $stats->getNbCommandeByMonth($year);
|
||||
|
||||
|
||||
$filev = "/document/images/commande.png";
|
||||
$filev = "/document/images/commande$year.png";
|
||||
|
||||
$px = new Graph();
|
||||
$px->SetWidth(450);
|
||||
$px = new Graph($data);
|
||||
$px->SetMaxValue($px->GetMaxValue());
|
||||
$px->SetWidth(500);
|
||||
$px->SetHeight(280);
|
||||
$px->SetYLabel("Nombre de commande");
|
||||
$px->draw($dir.$filev, $data, $year);
|
||||
@ -68,7 +69,10 @@ for ($i = 1 ; $i < 13 ; $i++)
|
||||
|
||||
$file_amount = "/document/images/commandeamount.png";
|
||||
|
||||
$px = new Graph();
|
||||
$px = new Graph($data);
|
||||
$px->SetMaxValue($px->GetAmountMaxValue());
|
||||
$px->SetWidth(500);
|
||||
$px->SetHeight(250);
|
||||
$px->SetYLabel("Montant des commande");
|
||||
$px->draw($dir.$file_amount, $data, $year);
|
||||
|
||||
@ -81,7 +85,10 @@ for ($i = 1 ; $i < 13 ; $i++)
|
||||
$data[$i-1] = array(strftime("%b",mktime(12,12,12,$i,1,$year)), $res[$i]);
|
||||
}
|
||||
$file_avg = "/document/images/commandeaverage.png";
|
||||
$px = new Graph();
|
||||
$px = new Graph($data);
|
||||
$px->SetMaxValue($px->GetAmountMaxValue());
|
||||
$px->SetWidth(500);
|
||||
$px->SetHeight(250);
|
||||
$px->SetYLabel("Montant moyen des commande");
|
||||
$px->draw($dir.$file_avg, $data, $year);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user