Fix: Echelle x incorrect sur graph expeditions
This commit is contained in:
parent
74f6dcde9e
commit
b685e685c8
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2001-2003 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -18,7 +18,6 @@
|
|||||||
*
|
*
|
||||||
* $Id$
|
* $Id$
|
||||||
* $Source$
|
* $Source$
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -36,6 +35,9 @@ require_once(DOL_DOCUMENT_ROOT."/dolgraph.class.php");
|
|||||||
|
|
||||||
llxHeader();
|
llxHeader();
|
||||||
|
|
||||||
|
$WIDTH=500;
|
||||||
|
$HEIGHT=200;
|
||||||
|
|
||||||
$mesg = '';
|
$mesg = '';
|
||||||
|
|
||||||
print_fiche_titre('Statistiques expeditions '.$_GET["year"], $mesg);
|
print_fiche_titre('Statistiques expeditions '.$_GET["year"], $mesg);
|
||||||
@ -49,12 +51,19 @@ $filename = $conf->expedition->dir_temp."/expedition".$year.".png";
|
|||||||
$fileurl = DOL_URL_ROOT.'/viewimage.php?modulepart=expeditionstats&file=expedition'.$year.'.png';
|
$fileurl = DOL_URL_ROOT.'/viewimage.php?modulepart=expeditionstats&file=expedition'.$year.'.png';
|
||||||
|
|
||||||
$px = new DolGraph();
|
$px = new DolGraph();
|
||||||
$px->SetData($data);
|
$mesg = $px->isGraphKo();
|
||||||
$px->SetMaxValue($px->GetCeilMaxValue());
|
if (! $mesg)
|
||||||
$px->SetPrecisionY(0);
|
{
|
||||||
$px->SetWidth(600);
|
$px->SetData($data);
|
||||||
$px->SetHeight(280);
|
$px->SetMaxValue($px->GetCeilMaxValue());
|
||||||
$px->draw($filename);
|
$px->SetWidth($WIDTH);
|
||||||
|
$px->SetHeight($HEIGHT);
|
||||||
|
$px->SetYLabel($langs->trans("NbOfOrders"));
|
||||||
|
$px->SetShading(5);
|
||||||
|
$px->SetHorizTickIncrement(1);
|
||||||
|
$px->SetPrecisionY(0);
|
||||||
|
$px->draw($filename);
|
||||||
|
}
|
||||||
|
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
print '<tr><td align="center">Nombre d\'expédition par mois</td>';
|
print '<tr><td align="center">Nombre d\'expédition par mois</td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user