mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
Show only the avg on the legend of the area/line graphs when the graph is inside a dashboard or a visual map
This commit is contained in:
parent
36f18905d6
commit
a1bad2ecb1
@ -168,6 +168,11 @@ function custom_graphs_print($id_graph, $height, $width, $period,
|
|||||||
|
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
|
// Only avg on dashboard and visual console
|
||||||
|
if ($dashboard || $vconsole) {
|
||||||
|
$show_last = $show_min = $show_max = false;
|
||||||
|
}
|
||||||
|
|
||||||
if ($id_graph == 0) {
|
if ($id_graph == 0) {
|
||||||
$graph_conf['stacked'] = CUSTOM_GRAPH_LINE;
|
$graph_conf['stacked'] = CUSTOM_GRAPH_LINE;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user