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)
This commit is contained in:
parent
53b9fa8762
commit
534a9f4cfa
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue