From b26c46a7c6efb8758dfad8efbcbc883e3dad02af Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Mon, 27 Nov 2017 12:31:40 +0100 Subject: [PATCH] [Console > Module area graph] Now the value shown into the legend has 2 decimals instead of 1 --- 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 28edc2f224..5d3a2e4222 100644 --- a/pandora_console/include/graphs/flot/pandora.flot.js +++ b/pandora_console/include/graphs/flot/pandora.flot.js @@ -1781,7 +1781,7 @@ function pandoraFlotArea(graph_id, values, labels, labels_long, legend, // The graphs of points type and unknown graphs will dont be updated if (serie_types[i] != 'points' && series.label != $('#hidden-unknown_text').val()) { $('#legend_' + graph_id + ' .legendLabel') - .eq(i).html(label_aux + '= ' + parseFloat(y).toFixed(precision_graph) + how_bigger + ' ' + unit); + .eq(i).html(label_aux + '= ' + parseFloat(y).toFixed(2) + how_bigger + ' ' + unit); } $('#legend_' + graph_id + ' .legendLabel')