From 76ae1bc84937c9a44b52c3a04a35bb10a0c035bd Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 27 Nov 2003 10:21:45 +0000 Subject: [PATCH] Modif le nombre d'increment pour les petits max --- htdocs/bargraph.class.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/htdocs/bargraph.class.php b/htdocs/bargraph.class.php index ac24545b71d..c2926a99929 100644 --- a/htdocs/bargraph.class.php +++ b/htdocs/bargraph.class.php @@ -70,6 +70,14 @@ class BarGraph extends Graph { $this->graph->SetNumVertTicks(4); } + elseif (substr($this->MaxValue,0,1) == 3) + { + $this->graph->SetNumVertTicks(6); + } + elseif (substr($this->MaxValue,0,1) == 4) + { + $this->graph->SetNumVertTicks(8); + } else { $this->graph->SetNumVertTicks(substr($this->MaxValue,0,1));