Merge "Remove grey line when pie chart is at 100%"

This commit is contained in:
Jenkins 2014-01-28 00:12:27 +00:00 committed by Gerrit Code Review
commit 7bbeef00ab
1 changed files with 7 additions and 1 deletions

View File

@ -86,7 +86,13 @@ horizon.d3_pie_chart = {
.attr("d", arc)
.style("fill", self.bkgrnd)
.style("stroke", "#CCCCCC")
.style("stroke-width", 1)
.style("stroke-width", function(d) {
if (self.data[0].percentage >= 100) {
return 0;
} else {
return 1;
}
})
.each(function(d) {
self.current = d;
return d;