From 4d89b6496f2385842a699e60a0de70b67163171d Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Tue, 28 Feb 2017 08:52:47 +0100 Subject: [PATCH] Min value always must be 0 in y axis. Ticket #345 --- pandora_console/include/graphs/flot/pandora.flot.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/graphs/flot/pandora.flot.js b/pandora_console/include/graphs/flot/pandora.flot.js index 05f55b99e0..b87a0388cb 100644 --- a/pandora_console/include/graphs/flot/pandora.flot.js +++ b/pandora_console/include/graphs/flot/pandora.flot.js @@ -1577,7 +1577,6 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend, } var stack = 0, bars = true, lines = false, steps = false; - var plot = $.plot($('#' + graph_id), datas, options); // Re-calculate the graph height with the legend height @@ -1881,6 +1880,7 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend, } function yFormatter(v, axis) { + axis.datamin = 0; var formatted = number_format(v,force_integer,unit); return '
'+formatted+'
';