From 534a9f4cfa58a318ae6b2ca29d54ff3fbb0dec3a Mon Sep 17 00:00:00 2001 From: Alejandro Gallardo Escobar Date: Fri, 27 May 2016 11:43:16 +0200 Subject: [PATCH] Show only the avg on the legend of the area/line graphs when the graph is inside a dashboard or a visual map (cherry picked from commit f1a3863460c8c31d79f60d4f5e398d1116670860) --- pandora_console/include/functions_custom_graphs.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandora_console/include/functions_custom_graphs.php b/pandora_console/include/functions_custom_graphs.php index db69a68698..fb9dd03d36 100644 --- a/pandora_console/include/functions_custom_graphs.php +++ b/pandora_console/include/functions_custom_graphs.php @@ -167,6 +167,11 @@ function custom_graphs_print($id_graph, $height, $width, $period, $dashboard = false, $vconsole = false) { global $config; + + // Only avg on dashboard and visual console + if ($dashboard || $vconsole) { + $show_last = $show_min = $show_max = false; + } if ($id_graph == 0) { $graph_conf['stacked'] = CUSTOM_GRAPH_LINE;