diff --git a/Classes/Dashboard/Widgets/PageViewsPerPageDoughnut.php b/Classes/Dashboard/Widgets/PageViewsPerPageDoughnut.php index 7b59f68..fd2a0ed 100644 --- a/Classes/Dashboard/Widgets/PageViewsPerPageDoughnut.php +++ b/Classes/Dashboard/Widgets/PageViewsPerPageDoughnut.php @@ -104,7 +104,7 @@ class PageViewsPerPageDoughnut extends AbstractDoughnutChartWidget ->where(... $constraints) ->groupBy('tx_tracking_pageview.pid') ->orderBy('total', 'desc') - ->setMaxResults(6) // Because 6 colors are defined + ->setMaxResults($this->settings['maxResults']) ->execute() ->fetchAll(); diff --git a/Classes/Dashboard/Widgets/SettingsFactory.php b/Classes/Dashboard/Widgets/SettingsFactory.php index 65aac9d..a51a849 100644 --- a/Classes/Dashboard/Widgets/SettingsFactory.php +++ b/Classes/Dashboard/Widgets/SettingsFactory.php @@ -29,6 +29,7 @@ class SettingsFactory 'pageViewsBar' => [ 'periodInDays' => 31, 'blackListedPages' => [], + 'maxResults' => 6, ], 'pageViewsPerPageDoughnut' => [ 'periodInDays' => 31,