long text controlled for donut chart

This commit is contained in:
Burak Civan 2022-06-09 14:52:26 +03:00
parent c07c6fbf50
commit 04c70d6faf

View File

@ -27,6 +27,9 @@ class ExpensesByCategory extends Widget
$chart = $this->getDonutChart(trans_choice('general.expenses', 2), '100%', 300, 6);
$chart->options['legend']['width'] = 200;
$chart->options['legend']['position'] = 'right';
return $this->view('widgets.donut_chart', [
'chart' => $chart,
]);