Fill empty data in graphs with last known data, no with nodata point - #937
This commit is contained in:
parent
8cc7489650
commit
d33621ffa7
|
@ -449,11 +449,17 @@ function grafico_modulo_sparse_data_chart (&$chart, &$chart_data_extra, &$long_i
|
|||
$chart[$timestamp]['no_data'.$series_suffix] = 0;
|
||||
$series_type['no_data'.$series_suffix] = 'area';
|
||||
}
|
||||
else {
|
||||
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';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($show_unknown) {
|
||||
if (!isset($chart[$timestamp]['unknown'.$series_suffix])) {
|
||||
|
|
Loading…
Reference in New Issue