Autoscale with a fixed minimum. Or
Moderators: Developers, Moderators
Autoscale with a fixed minimum. Or
Hi, I'd like to use the autoscale option for graphics but still keep the minimum at 0 (so an area twice bigger really means a value twice bigger)
-
- Posts: 7
- Joined: Sat Oct 19, 2002 5:16 pm
- Location: Paris, France
- Contact:
Hi, it's supported by rrdtool, the option --alt-autoscale-max only autoscales the maximum value, so you should set the configured lower limit, see the patch below.
Another problem in rrdtool is that the man page says that the default lower limit is 0, but using alt-autoscale-max with no explicit lower limit autoscales the lower limit anyway.
Another problem in rrdtool is that the man page says that the default lower limit is 0, but using alt-autoscale-max with no explicit lower limit autoscales the lower limit anyway.
Code: Select all
*** include/rrd_functions.php.orig Sat Oct 19 16:57:19 2002
--- include/rrd_functions.php Sat Oct 19 17:02:23 2002
***************
*** 362,367 ****
--- 362,368 ----
break;
case "2":
$scale .= "--alt-autoscale-max" . " \\\n";
+ $scale = "--lower-limit=" . mysql_result($sql_id, 0, "upperlimit") . " \\\n";
break;
}
-
- Posts: 7
- Joined: Sat Oct 19, 2002 5:16 pm
- Location: Paris, France
- Contact:
-
- Posts: 7
- Joined: Sat Oct 19, 2002 5:16 pm
- Location: Paris, France
- Contact:
-
- Posts: 7
- Joined: Sat Oct 19, 2002 5:16 pm
- Location: Paris, France
- Contact:
Who is online
Users browsing this forum: No registered users and 1 guest