From b0788c31b56bd97dc516d8e14460a88cc5a11256 Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Thu, 9 Jun 2022 15:02:44 +0300 Subject: [PATCH] long text controlled for donut chart --- app/Abstracts/Report.php | 2 +- app/Widgets/ExpensesByCategory.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Abstracts/Report.php b/app/Abstracts/Report.php index 5ca518bc7..9151b8cf7 100644 --- a/app/Abstracts/Report.php +++ b/app/Abstracts/Report.php @@ -237,7 +237,7 @@ abstract class Report ->setColors(array_values($colors)) ->setDataset($this->tables[$table_key], 'donut', array_values($values)); - $chart->options['legend']['width'] = 160; + $chart->options['legend']['width'] = 150; $chart->options['legend']['position'] = 'right'; return $chart; diff --git a/app/Widgets/ExpensesByCategory.php b/app/Widgets/ExpensesByCategory.php index acd16eee0..11010876a 100644 --- a/app/Widgets/ExpensesByCategory.php +++ b/app/Widgets/ExpensesByCategory.php @@ -27,7 +27,7 @@ class ExpensesByCategory extends Widget $chart = $this->getDonutChart(trans_choice('general.expenses', 2), '100%', 300, 6); - $chart->options['legend']['width'] = 220; + $chart->options['legend']['width'] = 210; $chart->options['legend']['position'] = 'right'; return $this->view('widgets.donut_chart', [