mirror of
https://github.com/DanielSiepmann/tracking.git
synced 2024-11-21 21:46:09 +01:00
Make max results of doughnut graph configurable
This commit is contained in:
parent
e237941e07
commit
db2b0e13ed
2 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -29,6 +29,7 @@ class SettingsFactory
|
|||
'pageViewsBar' => [
|
||||
'periodInDays' => 31,
|
||||
'blackListedPages' => [],
|
||||
'maxResults' => 6,
|
||||
],
|
||||
'pageViewsPerPageDoughnut' => [
|
||||
'periodInDays' => 31,
|
||||
|
|
Loading…
Reference in a new issue