Update common.inc.php (#14407)

Place the Y grid dynamically based on the graph's Y range. The algorithm ensures that you always have a grid, that there are enough but not too many grid lines, and that the grid is metric. That is the grid lines are placed every 1, 2, 5 or 10 units. This parameter will also ensure that you get enough decimals displayed even if your graph goes from 69.998 to 70.001. (contributed by Sasha Mikheev).
This commit is contained in:
Kevin Zink
2022-09-30 13:21:10 +02:00
committed by GitHub
parent 833dab7a83
commit 698275dd12
+1 -1
View File
@@ -59,7 +59,7 @@ if (isset($_GET['graph_title'])) {
}
if (! isset($scale_min) && ! isset($scale_max)) {
$rrd_options .= ' --alt-autoscale-max';
$rrd_options .= ' --alt-autoscale-max --alt-y-grid';
}
if (! isset($scale_min) && ! isset($scale_max) && ! isset($norigid)) {