Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenaka Moorthi <benaka.moorthi@gmail.com>2013-05-27 08:25:05 +0400
committerBenaka Moorthi <benaka.moorthi@gmail.com>2013-05-27 08:25:05 +0400
commit047586ce989d5a5a5b451612963fa1324538c568 (patch)
treea1e7d7cbd566992b228f72f81752b55a4afc1c06
parentfd0cdc89ffac8ff5d1574a0824a39a26f7dbaeee (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.php2
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;