refactored widget charts

This commit is contained in:
denisdulici
2020-01-03 19:00:38 +03:00
parent 47f9f478d0
commit f6e0c4dfc2
9 changed files with 25 additions and 48 deletions

View File

@ -92,7 +92,7 @@ class CashFlow extends Widget
])
->fill(false);
return $this->view('widgets.cash_flow', [
return $this->view('widgets.line_chart', [
'chart' => $chart,
]);
}

View File

@ -23,7 +23,7 @@ class ExpensesByCategory extends Widget
$chart = $this->getDonutChart(trans_choice('general.expenses', 2), 0, 160, 6);
return $this->view('widgets.expenses_by_category', [
return $this->view('widgets.donut_chart', [
'chart' => $chart,
]);
}

View File

@ -23,7 +23,7 @@ class IncomeByCategory extends Widget
$chart = $this->getDonutChart(trans_choice('general.incomes', 1), 0, 160, 6);
return $this->view('widgets.income_by_category', [
return $this->view('widgets.donut_chart', [
'chart' => $chart,
]);
}