From e5b49240c712a0bf0a7147402923fbcef3fc1120 Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Mon, 30 May 2016 18:47:05 +0200 Subject: [PATCH] Now the pie graph is bigger --- pandora_console/include/graphs/flot/pandora.flot.js | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/pandora_console/include/graphs/flot/pandora.flot.js b/pandora_console/include/graphs/flot/pandora.flot.js index 2412da2887..624da0e7a2 100644 --- a/pandora_console/include/graphs/flot/pandora.flot.js +++ b/pandora_console/include/graphs/flot/pandora.flot.js @@ -9,6 +9,8 @@ function pandoraFlotPie(graph_id, values, labels, nseries, width, font_size, wat if (colors != '') { colors = colors.split(separator); } + + var pieRadius = 0.9; var color = null; for (var i = 0; i < nseries; i++) { @@ -29,7 +31,7 @@ function pandoraFlotPie(graph_id, values, labels, nseries, width, font_size, wat else { label_conf = { show: true, - radius: 3/4, + radius: pieRadius, formatter: function(label, series) { return '
' + @@ -51,7 +53,7 @@ function pandoraFlotPie(graph_id, values, labels, nseries, width, font_size, wat series: { pie: { show: true, - radius: 3/4, + radius: pieRadius, //offset: {top: -100}, label: label_conf, //$label_str @@ -74,12 +76,6 @@ function pandoraFlotPie(graph_id, values, labels, nseries, width, font_size, wat switch (legend_position) { case 'bottom': - if (width > height) - offset = - (height / 5); - else - offset = - (width / 5); - conf_pie.series.pie.radius = 1 / 2.5; - conf_pie.series.pie.offset = {top: offset}; conf_pie.legend.position = "se"; break; case 'right':