mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
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…
x
Reference in New Issue
Block a user