Utilisation de la classe BarGraph

This commit is contained in:
Rodolphe Quiedeville 2003-11-25 11:54:58 +00:00
parent 204a964226
commit 2056561cd9
3 changed files with 5 additions and 5 deletions

View File

@ -35,7 +35,7 @@ $year = strftime("%Y", time());
$data = $stats->getNbByMonthWithPrevYear($year);
$filev = "/document/images/nbpropale2year-$year.png";
$px = new Graph($data);
$px = new BarGraph($data);
$px->SetMaxValue($px->GetMaxValue());
$px->SetLegend(array($year - 1, $year));
$px->SetWidth(450);

View File

@ -46,7 +46,7 @@ $data = $stats->getNbByMonth($year);
$filev = "/document/images/propale$year.png";
$px = new Graph($data);
$px = new BarGraph($data);
$px->SetMaxValue($px->GetMaxValue());
$px->SetWidth(500);
$px->SetHeight(280);
@ -66,7 +66,7 @@ for ($i = 1 ; $i < 13 ; $i++)
$file_amount = "/document/images/propalamount$year.png";
$px = new Graph($data);
$px = new BarGraph($data);
$px->SetYLabel("Montant");
$px->SetMaxValue($px->GetAmountMaxValue());
$px->SetWidth(500);
@ -83,7 +83,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/propalaverage$year.png";
$px = new Graph($data);
$px = new BarGraph($data);
$px->SetYLabel("Montant moyen");
$px->SetMaxValue($px->GetAmountMaxValue());
$px->SetWidth(500);

View File

@ -20,7 +20,7 @@
*
*/
require("../../../main.inc.php");
require(DOL_DOCUMENT_ROOT."/graph.class.php");
require(DOL_DOCUMENT_ROOT."/bargraph.class.php");
function llxHeader($head = "", $urlp = "") {
/*