From 79ef6c5e7091e7028a5cb00229af69e652934eac Mon Sep 17 00:00:00 2001 From: "Pierre Habouzit (MadCoder" Date: Mon, 17 Jan 2005 00:48:43 +0000 Subject: [PATCH] better zoom git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-368 --- htdocs/stats/graph_evolution.php | 5 +++-- htdocs/stats/graph_promo.php | 6 ++++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/htdocs/stats/graph_evolution.php b/htdocs/stats/graph_evolution.php index ddd8546..44224f4 100644 --- a/htdocs/stats/graph_evolution.php +++ b/htdocs/stats/graph_evolution.php @@ -60,8 +60,9 @@ for ($i=-$JOURS;$i<=0;$i++) { //Genere le graphique à la volée avec GNUPLOT header( "Content-type: image/png"); -$ymin = round($init_nb*0.95,0); -$ymax = round($total *1.05,0); +$delt = ($total - $init_nb)/10; +$ymin = round($init_nb - $delt,0); +$ymax = round($total + $delt,0); $gnuplot = <<