Fill empty data in graphs with last known data, no with nodata point - #937
This commit is contained in:
parent
8cc7489650
commit
d33621ffa7
|
@ -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';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue