Utilisation de la class bargraph

This commit is contained in:
Rodolphe Quiedeville 2003-11-25 10:27:51 +00:00
parent 1964bb2cef
commit a25aba3250

View File

@ -53,7 +53,7 @@ $data = $stats->getNbByMonth($year);
$filev = "/document/images/facture$year.png";
$px = new Graph($data);
$px = new BarGraph($data);
$px->SetMaxValue($px->GetMaxValue());
$px->SetWidth(500);
$px->SetHeight(280);
@ -73,7 +73,7 @@ for ($i = 1 ; $i < 13 ; $i++)
$file_amount = "/document/images/factureamount$year.png";
$px = new Graph($data);
$px = new BarGraph($data);
$px->SetYLabel("Montant");
$px->SetMaxValue($px->GetAmountMaxValue());
$px->SetWidth(500);
@ -90,7 +90,7 @@ 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/factureaverage$year.png";
$px = new Graph($data);
$px = new BarGraph($data);
$px->SetYLabel("Montant moyen");
$px->SetMaxValue($px->GetAmountMaxValue());
$px->SetWidth(500);