mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
#11212 Fixed donut graph
This commit is contained in:
parent
9cf10e4f39
commit
57ed7a6610
@ -2846,8 +2846,11 @@ function get_donut_module_data($id_module)
|
||||
|
||||
$values_to_return = [];
|
||||
foreach ($values as $val) {
|
||||
$data = explode(',', $val);
|
||||
if (empty($val) === true) {
|
||||
continue;
|
||||
}
|
||||
|
||||
$data = explode(',', $val);
|
||||
if ($data[0] === $val) {
|
||||
continue;
|
||||
}
|
||||
|
@ -160,9 +160,6 @@ final class DonutGraph extends Item
|
||||
if (empty($graphData) === true) {
|
||||
$data['html'] = graph_nodata_image(['width' => $width, 'height' => $height]);
|
||||
} else {
|
||||
array_pop($graphData['labels']);
|
||||
array_pop($graphData['data']);
|
||||
|
||||
$options = [
|
||||
'waterMark' => false,
|
||||
'legend' => [
|
||||
@ -226,7 +223,7 @@ final class DonutGraph extends Item
|
||||
'module_input' => true,
|
||||
'module_name' => 'moduleId',
|
||||
'module_none' => false,
|
||||
'get_only_string_modules' => false,
|
||||
'get_only_string_modules' => true,
|
||||
],
|
||||
];
|
||||
|
||||
@ -241,7 +238,7 @@ final class DonutGraph extends Item
|
||||
'sort' => false,
|
||||
'agent_id' => $values['agentId'],
|
||||
'metaconsole_id' => $values['metaconsoleId'],
|
||||
'get_only_string_modules' => false,
|
||||
'get_only_string_modules' => true,
|
||||
],
|
||||
];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user