format expenses chart for humans

This commit is contained in:
Denis Duliçi
2022-07-26 14:32:12 +03:00
parent e7fc5404d5
commit 91ce0e5aa8

View File

@ -28,7 +28,7 @@ trait Charts
public function addMoneyToDonut($color, $amount, $description = '')
{
$label = money($amount, setting('default.currency'), true)->format();
$label = money($amount, setting('default.currency'), true)->formatForHumans();
if (!empty($description)) {
$label .= ' - ' . $description;