From 320446b66526844a1891f00074c8461d11d96ed9 Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Fri, 24 Jun 2022 16:39:43 +0300 Subject: [PATCH] added formatlabel relating chart pages --- app/Widgets/CashFlow.php | 2 +- app/Widgets/ProfitLoss.php | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/Widgets/CashFlow.php b/app/Widgets/CashFlow.php index 7ed298ddb..b9054ad1e 100644 --- a/app/Widgets/CashFlow.php +++ b/app/Widgets/CashFlow.php @@ -56,7 +56,7 @@ class CashFlow extends Widget ], 'yaxis' => [ 'labels' => [ - 'formatter' => $this->getFormatLabel('percent'), + 'formatter' => $this->getFormatLabel(), ], ], ]; diff --git a/app/Widgets/ProfitLoss.php b/app/Widgets/ProfitLoss.php index 3477cf301..24edd3a08 100644 --- a/app/Widgets/ProfitLoss.php +++ b/app/Widgets/ProfitLoss.php @@ -48,6 +48,12 @@ class ProfitLoss extends Widget 'radius' => '12', ], ], + + 'yaxis' => [ + 'labels' => [ + 'formatter' => $this->getFormatLabel(), + ], + ], ]; $chart->setType('bar')