Fill empty data in graphs with last known data, no with nodata point - #937

This commit is contained in:
enriquecd 2017-05-30 16:34:30 +02:00
parent 8cc7489650
commit d33621ffa7
1 changed files with 8 additions and 2 deletions

View File

@ -450,8 +450,14 @@ function grafico_modulo_sparse_data_chart (&$chart, &$chart_data_extra, &$long_i
$series_type['no_data'.$series_suffix] = 'area'; $series_type['no_data'.$series_suffix] = 'area';
} }
else { else {
$chart[$timestamp]['no_data'.$series_suffix] = $last_known; if($uncompressed_module){
$series_type['no_data'.$series_suffix] = 'area'; $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';
}
} }
} }