From d33621ffa795489370b2ae64abdbb56f4223b614 Mon Sep 17 00:00:00 2001 From: enriquecd Date: Tue, 30 May 2017 16:34:30 +0200 Subject: [PATCH] Fill empty data in graphs with last known data, no with nodata point - #937 --- pandora_console/include/functions_graph.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index 5fb4aceda9..70d9ea068c 100644 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -450,8 +450,14 @@ function grafico_modulo_sparse_data_chart (&$chart, &$chart_data_extra, &$long_i $series_type['no_data'.$series_suffix] = 'area'; } else { - $chart[$timestamp]['no_data'.$series_suffix] = $last_known; - $series_type['no_data'.$series_suffix] = 'area'; + if($uncompressed_module){ + $chart[$timestamp]['sum'.$series_suffix] = $last_known; + $series_type['sum'.$series_suffix] = 'area'; + } + else{ + $chart[$timestamp]['no_data'.$series_suffix] = $last_known; + $series_type['no_data'.$series_suffix] = 'area'; + } } }