diff --git a/pandora_console/include/rest-api/models/VisualConsole/Items/BarsGraph.php b/pandora_console/include/rest-api/models/VisualConsole/Items/BarsGraph.php index a7c91122ae..91a7abcd35 100644 --- a/pandora_console/include/rest-api/models/VisualConsole/Items/BarsGraph.php +++ b/pandora_console/include/rest-api/models/VisualConsole/Items/BarsGraph.php @@ -54,11 +54,11 @@ final class BarsGraph extends Item * * @return mixed String representing the grid color (not empty) or null. */ - private function extractGridColor(array $data) + private function extractGridColor(array $data): string { return static::notEmptyStringOr( static::issetInArray($data, ['gridColor', 'border_color']), - null + '#000000' ); } @@ -104,11 +104,11 @@ final class BarsGraph extends Item ); switch ($typeGraph) { - case 'vertical': - return 'vertical'; + case 'horizontal': + return 'horizontal'; default: - return 'horizontal'; + return 'vertical'; } } diff --git a/pandora_console/include/rest-api/models/VisualConsole/Items/DonutGraph.php b/pandora_console/include/rest-api/models/VisualConsole/Items/DonutGraph.php index 111c6e8373..93ab7bffe8 100644 --- a/pandora_console/include/rest-api/models/VisualConsole/Items/DonutGraph.php +++ b/pandora_console/include/rest-api/models/VisualConsole/Items/DonutGraph.php @@ -70,7 +70,7 @@ final class DonutGraph extends Item 'border_color', ] ), - null + '#000000' ); }