mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Netflow graphs display as stacked
Former-commit-id: 58bdd14900b5d6e36041417d31b242f31af9358b
This commit is contained in:
parent
935db452d2
commit
e0d41957f9
@ -533,7 +533,8 @@ function grafico_modulo_sparse_data(
|
||||
'image_treshold' => false,
|
||||
'graph_combined' => false,
|
||||
'zoom' => 1,
|
||||
'server_id' => null
|
||||
'server_id' => null,
|
||||
'stacked' => 0,
|
||||
);
|
||||
*/
|
||||
function grafico_modulo_sparse($params)
|
||||
@ -710,6 +711,10 @@ function grafico_modulo_sparse($params)
|
||||
$agent_module_id = $params['agent_module_id'];
|
||||
}
|
||||
|
||||
if (!isset($params['stacked'])) {
|
||||
$params['stacked'] = 0;
|
||||
}
|
||||
|
||||
// XXXX Configurable
|
||||
$params['grid_color'] = '#C1C1C1';
|
||||
$params['legend_color'] = '#636363';
|
||||
@ -4159,6 +4164,7 @@ function graph_netflow_aggregate_area($data, $period, $width, $height, $unit='',
|
||||
'font' => $config['fontpath'],
|
||||
'font_size' => $config['font_size'],
|
||||
'array_data_create' => $chart,
|
||||
'stacked' => 1,
|
||||
];
|
||||
|
||||
return grafico_modulo_sparse($params);
|
||||
|
Loading…
x
Reference in New Issue
Block a user