mirror of
https://github.com/DanielSiepmann/tracking.git
synced 2024-11-22 13:56: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)
|
->where(... $constraints)
|
||||||
->groupBy('tx_tracking_pageview.pid')
|
->groupBy('tx_tracking_pageview.pid')
|
||||||
->orderBy('total', 'desc')
|
->orderBy('total', 'desc')
|
||||||
->setMaxResults(6) // Because 6 colors are defined
|
->setMaxResults($this->settings['maxResults'])
|
||||||
->execute()
|
->execute()
|
||||||
->fetchAll();
|
->fetchAll();
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,7 @@ class SettingsFactory
|
||||||
'pageViewsBar' => [
|
'pageViewsBar' => [
|
||||||
'periodInDays' => 31,
|
'periodInDays' => 31,
|
||||||
'blackListedPages' => [],
|
'blackListedPages' => [],
|
||||||
|
'maxResults' => 6,
|
||||||
],
|
],
|
||||||
'pageViewsPerPageDoughnut' => [
|
'pageViewsPerPageDoughnut' => [
|
||||||
'periodInDays' => 31,
|
'periodInDays' => 31,
|
||||||
|
|
Loading…
Reference in a new issue