diff options
author | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-05-27 08:25:05 +0400 |
---|---|---|
committer | Benaka Moorthi <benaka.moorthi@gmail.com> | 2013-05-27 08:25:05 +0400 |
commit | 047586ce989d5a5a5b451612963fa1324538c568 (patch) | |
tree | a1e7d7cbd566992b228f72f81752b55a4afc1c06 | |
parent | fd0cdc89ffac8ff5d1574a0824a39a26f7dbaeee (diff) |
Fixes #3956, don't rename last piece of data to Others in Pie static graph (in ImageGraph) since logic is handled by truncate filter.
-rw-r--r-- | plugins/ImageGraph/StaticGraph/PieGraph.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ImageGraph/StaticGraph/PieGraph.php b/plugins/ImageGraph/StaticGraph/PieGraph.php index d2b8df51c5..a44bf79418 100644 --- a/plugins/ImageGraph/StaticGraph/PieGraph.php +++ b/plugins/ImageGraph/StaticGraph/PieGraph.php @@ -114,7 +114,7 @@ abstract class Piwik_ImageGraph_StaticGraph_PieGraph extends Piwik_ImageGraph_St $smallValuesSum += $this->ordinateSeries[$metricColumn][$ordinateValuesCount - 1]; if (($smallValuesSum / $ordinateValuesSum) > 0.01) { $truncatedOrdinateSeries[$metricColumn][] = $smallValuesSum; - $truncatedAbscissaSeries[] = Piwik_Translate('General_Others'); + $truncatedAbscissaSeries[] = end($this->abscissaSeries); } $this->ordinateSeries = $truncatedOrdinateSeries; |