mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-30 01:05:39 +02:00
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.
|
* @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';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,7 +70,7 @@ final class DonutGraph extends Item
|
|||||||
'border_color',
|
'border_color',
|
||||||
]
|
]
|
||||||
),
|
),
|
||||||
null
|
'#000000'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user