From 9b81da193b42b9f69847a9888021ae46aadf7b6c Mon Sep 17 00:00:00 2001 From: Daniel Barbero Martin Date: Wed, 28 Oct 2020 12:50:15 +0100 Subject: [PATCH] fix charts --- pandora_console/include/functions_graph.php | 10 +++------- .../include/functions_treeview.php | 2 +- .../include/graphs/functions_flot.php | 19 ++++++------------- pandora_console/include/styles/pandora.css | 8 +++++++- .../operation/agentes/stat_win.php | 1 + 5 files changed, 18 insertions(+), 22 deletions(-) diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index 4fd1439f8f..f40b75e3b2 100644 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -2541,13 +2541,9 @@ function graphic_agentaccess( } else { $options['generals']['pdf']['width'] = 350; $options['generals']['pdf']['height'] = 125; - if (!empty($data_array)) { - $imgbase64 = ''; - } else { - $imgbase64 .= vbar_graph($data_array, $options, 2); - } + $imgbase64 = ''; return $imgbase64; } diff --git a/pandora_console/include/functions_treeview.php b/pandora_console/include/functions_treeview.php index 25e0f67020..67bed22be3 100755 --- a/pandora_console/include/functions_treeview.php +++ b/pandora_console/include/functions_treeview.php @@ -802,7 +802,7 @@ function treeview_printTable($id_agente, $server_data=[], $no_head=false) $events_graph = '
'; $events_graph .= graph_graphic_agentevents( $id_agente, - '385px;', + '340px;margin:0', 45, SECONDS_1DAY, '', diff --git a/pandora_console/include/graphs/functions_flot.php b/pandora_console/include/graphs/functions_flot.php index dc4e556292..81c9cc79cf 100644 --- a/pandora_console/include/graphs/functions_flot.php +++ b/pandora_console/include/graphs/functions_flot.php @@ -346,13 +346,7 @@ function menu_graph( $threshold = true; } - $return .= "