long texts controlled for donut chart

This commit is contained in:
Burak Civan 2022-06-09 15:01:19 +03:00
parent 04c70d6faf
commit 9a61f841db
2 changed files with 4 additions and 1 deletions

View File

@ -237,6 +237,9 @@ abstract class Report
->setColors(array_values($colors))
->setDataset($this->tables[$table_key], 'donut', array_values($values));
$chart->options['legend']['width'] = 160;
$chart->options['legend']['position'] = 'right';
return $chart;
}

View File

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