From 1130fa4a6fce4cb10b73333aa17547ff63c059fc Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Wed, 17 Jun 2015 00:31:38 +0200 Subject: [PATCH] Improve label display on pie chart. --- accountant/frontend/static/js/entries.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accountant/frontend/static/js/entries.js b/accountant/frontend/static/js/entries.js index f00d97b..fd0d767 100644 --- a/accountant/frontend/static/js/entries.js +++ b/accountant/frontend/static/js/entries.js @@ -90,7 +90,7 @@ accountantApp.controller( size: '60%', dataLabels: { formatter: function() { - return this.point.name !== null && this.y > 100 ? this.point.name : null; + return this.point.name !== null && this.percentage >= 2.5 ? this.point.name : null; }, } }]