From c2fa50c2deac1ad76400138f4afeaa3aaef320bc Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 30 Jun 2003 13:32:49 +0000 Subject: [PATCH] =?UTF-8?q?Positionne=20par=20d=E9faut=20la=20pr=E9cision?= =?UTF-8?q?=20des=20l=E9gendes=20=E0=200=20digits?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/graph.class.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/htdocs/graph.class.php b/htdocs/graph.class.php index 6976aa7c450..54b5b6ccda7 100644 --- a/htdocs/graph.class.php +++ b/htdocs/graph.class.php @@ -34,6 +34,9 @@ class Graph $this->datacolor = array(array(204,204,179), array(187,187,136), array(235,235,224)); + + $this->precision_y = 0; + return 1; } @@ -54,7 +57,7 @@ class Graph $graph->SetPlotAreaPixels(60,10,$w-10,$h-30) ; $graph->SetBackgroundColor($this->bgcolor); - + $graph->SetPrecisionY($this->precision_Y); $graph->SetDataColors($this->datacolor, $this->bordercolor); $graph->SetOutputFile($file); @@ -66,7 +69,12 @@ class Graph //Draw it $graph->DrawGraph(); + } + function SetPrecisionY($which_prec) + { + $this->precision_y = $which_prec; + return true; } }