mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user