diff options
author | BeezyT <timo@ezdesign.de> | 2011-11-18 20:15:25 +0400 |
---|---|---|
committer | BeezyT <timo@ezdesign.de> | 2011-11-18 20:15:25 +0400 |
commit | 44e1b7ae3820bfeecd72db08ce4c45f3231b5702 (patch) | |
tree | 560d19ac0fbd496b542653db2bc489e708c33ed4 /plugins/UserCountry | |
parent | 9f2a360d1bf03b96248bc87f272d7fe93dba78a4 (diff) |
refs #1820 metrics picker for pie/bar charts in more reports
git-svn-id: http://dev.piwik.org/svn/trunk@5453 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/UserCountry')
-rw-r--r-- | plugins/UserCountry/Controller.php | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/plugins/UserCountry/Controller.php b/plugins/UserCountry/Controller.php index 4ecbb9cef0..1ae511e2ec 100644 --- a/plugins/UserCountry/Controller.php +++ b/plugins/UserCountry/Controller.php @@ -55,14 +55,10 @@ class Piwik_UserCountry_Controller extends Piwik_Controller $view->disableExcludeLowPopulation(); $this->setPeriodVariablesView($view); - $column = 'nb_visits'; - if($view->period == 'day') - { - $column = 'nb_uniq_visitors'; - } - $view->setColumnsToDisplay( array('label',$column) ); - $view->setSortedColumn( $column ); + $this->setMetricsVariablesView($view); + $view->enableShowGoals(); + return $view; } |