diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index cf5c52dc41..7378129fc1 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2013-12-11 Sergio Martin + + * include/graphs/flot/pandora.flot.js: Add one decimal + to pie graphs to don't lose so much precision when + percentages are rounded + Incident #407 + 2013-12-10 Dario Rodriguez * mobile/operation/modules.php, diff --git a/pandora_console/include/graphs/flot/pandora.flot.js b/pandora_console/include/graphs/flot/pandora.flot.js index b01c867e3f..f4608a9969 100644 --- a/pandora_console/include/graphs/flot/pandora.flot.js +++ b/pandora_console/include/graphs/flot/pandora.flot.js @@ -33,7 +33,7 @@ function pandoraFlotPie(graph_id, values, labels, nseries, width, font_size, wat formatter: function(label, series) { return '
' + - label + '
' + Math.round(series.percent) + '%
'; + label + '
' + series.percent.toFixed(1) + '%'; }, background: { opacity: 0.5,