From b616e8a21ccbe202fef5f4f45d823f769307a938 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Mon, 24 Oct 2016 16:10:41 +0200 Subject: [PATCH] Fixed problems with hbars graphs (cherry picked from commit aab6db3f65096585f3750018b6f0a308df9bab03) --- pandora_console/include/graphs/flot/pandora.flot.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pandora_console/include/graphs/flot/pandora.flot.js b/pandora_console/include/graphs/flot/pandora.flot.js index a7f5c57317..0ecf092e23 100644 --- a/pandora_console/include/graphs/flot/pandora.flot.js +++ b/pandora_console/include/graphs/flot/pandora.flot.js @@ -328,11 +328,10 @@ function pandoraFlotHBars(graph_id, values, labels, water_mark, // the X axis show negative part instead to // show the axis only the positive part. if (maxvalue == 0) { - options['xaxes'][0]['min'] = 0; - + options['yaxis']['min'] = 0; // Fixed the values with a lot of decimals in the situation // with all 0 values. - options['xaxes'][0]['tickDecimals'] = 0; + options['yaxis']['tickDecimals'] = 0; }