Default value changes in BarsGraph and DonutGraph

Former-commit-id: 57ace29b4cdcd075ddceb146b1344d3e61b2b1dd
This commit is contained in:
Daniel Maya 2019-04-09 12:41:14 +02:00
parent eabe8ef00a
commit e8740b1966
2 changed files with 6 additions and 6 deletions

View File

@ -54,11 +54,11 @@ final class BarsGraph extends Item
* *
* @return mixed String representing the grid color (not empty) or null. * @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( return static::notEmptyStringOr(
static::issetInArray($data, ['gridColor', 'border_color']), static::issetInArray($data, ['gridColor', 'border_color']),
null '#000000'
); );
} }
@ -104,11 +104,11 @@ final class BarsGraph extends Item
); );
switch ($typeGraph) { switch ($typeGraph) {
case 'vertical': case 'horizontal':
return 'vertical'; return 'horizontal';
default: default:
return 'horizontal'; return 'vertical';
} }
} }

View File

@ -70,7 +70,7 @@ final class DonutGraph extends Item
'border_color', 'border_color',
] ]
), ),
null '#000000'
); );
} }