diff options
author | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-08-20 05:34:01 +0400 |
---|---|---|
committer | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-08-20 05:34:01 +0400 |
commit | ad685e9f1cbe75bff25f06d6da2dd2263c82e722 (patch) | |
tree | fd29f073504bab936fe59c00ba21d0bd6f0ea8d1 /plugins/CoreVisualizations/JqplotDataGenerator.php | |
parent | fc8ae5f1e6813e59d7c75558625b26f19309bc7e (diff) |
Refs #4041, mild refactoring to ViewDataTable, handle max_graph_elements property w/ filter_truncate instead of directly executing filter and fix bug in JqplotGraph's constructor.
Diffstat (limited to 'plugins/CoreVisualizations/JqplotDataGenerator.php')
-rw-r--r-- | plugins/CoreVisualizations/JqplotDataGenerator.php | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/plugins/CoreVisualizations/JqplotDataGenerator.php b/plugins/CoreVisualizations/JqplotDataGenerator.php index 9642aabf1b..6de29e226b 100644 --- a/plugins/CoreVisualizations/JqplotDataGenerator.php +++ b/plugins/CoreVisualizations/JqplotDataGenerator.php @@ -83,16 +83,6 @@ class JqplotDataGenerator */ public function generate($dataTable) { - if (!empty($this->properties['visualization_properties']->max_graph_elements)) { - $offsetStartSummary = $this->properties['visualization_properties']->max_graph_elements - 1; - $sortColumn = !empty($this->properties['filter_sort_column']) - ? $this->properties['filter_sort_column'] - : Metrics::INDEX_NB_VISITS; - - $dataTable->filter( - 'AddSummaryRow', array($offsetStartSummary, Piwik_Translate('General_Others'), $sortColumn)); - } - if ($dataTable->getRowsCount() > 0) { // if addTotalRow was called in GenerateGraphHTML, add a row containing totals of // different metrics |