Qual: Uniformize way to get graph sizes.
This commit is contained in:
parent
62893c2ae4
commit
43fd068d1d
@ -23,8 +23,9 @@
|
|||||||
|
|
||||||
require '../../main.inc.php';
|
require '../../main.inc.php';
|
||||||
require_once DOL_DOCUMENT_ROOT.'/core/lib/member.lib.php';
|
require_once DOL_DOCUMENT_ROOT.'/core/lib/member.lib.php';
|
||||||
|
require_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php';
|
||||||
|
|
||||||
$graphwidth = 700;
|
$graphwidth=DolGraph::getDefaultGraphSizeForStats('width',700);
|
||||||
$mapratio = 0.5;
|
$mapratio = 0.5;
|
||||||
$graphheight = round($graphwidth * $mapratio);
|
$graphheight = round($graphwidth * $mapratio);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user