From cd5f9ca0a108f185dfab6d0fcd0e36f84a7d0bd2 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 28 Dec 2007 02:16:06 +0000 Subject: [PATCH] =?UTF-8?q?Fix:=20Les=20donnees=20sur=20axe=20Y=20etaient?= =?UTF-8?q?=20tronqu=C3=A9es=20si=20trop=20longues?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/dolgraph.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/dolgraph.class.php b/htdocs/dolgraph.class.php index 655b5f81686..338a7249168 100644 --- a/htdocs/dolgraph.class.php +++ b/htdocs/dolgraph.class.php @@ -163,7 +163,7 @@ class DolGraph $group = new PlotGroup; //$group->setSpace(5, 5, 0, 0); - $group->setPadding(30, 10); + $group->setPadding(strlen(max(abs($this->MaxValue),abs($this->MinValue)))*8+20, 10); // Width on left and right for Y axis values $group->legend->setSpace(0); $group->legend->setPadding(2,2,2,2); $group->legend->setPosition(NULL,0.1);