Trim the label.

This commit is contained in:
James Cole 2020-07-26 14:37:45 +02:00
parent 94c31ad747
commit c86673f3ec
No known key found for this signature in database
GPG Key ID: B5669F9493CDE38D

View File

@ -90,7 +90,7 @@ trait ChartGeneration
$previous = array_values($range)[0];
while ($currentStart <= $end) {
$format = $currentStart->format('Y-m-d');
$label = $currentStart->formatLocalized((string)trans('config.month_and_day', [], $locale));
$label = trim($currentStart->formatLocalized((string)trans('config.month_and_day', [], $locale)));
$balance = isset($range[$format]) ? round($range[$format], 12) : $previous;
$previous = $balance;
$currentStart->addDay();