Default value changes in BarsGraph and DonutGraph
Former-commit-id: 57ace29b4cdcd075ddceb146b1344d3e61b2b1dd
This commit is contained in:
parent
eabe8ef00a
commit
e8740b1966
|
@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -70,7 +70,7 @@ final class DonutGraph extends Item
|
|||
'border_color',
|
||||
]
|
||||
),
|
||||
null
|
||||
'#000000'
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue