Improve label display on pie chart.

This commit is contained in:
Alexis Lahouze 2015-06-17 00:31:38 +02:00
parent feef6dd880
commit 1130fa4a6f

View File

@ -90,7 +90,7 @@ accountantApp.controller(
size: '60%', size: '60%',
dataLabels: { dataLabels: {
formatter: function() { 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;
}, },
} }
}] }]