Thanks! :-)
I just found an other solution :-)
I created a second arc with a bigger radius and used it to position my
labels.
///// Arc Labels /////
// Calculate position
var pos = d3.svg.arc().innerRadius(r + 20).outerRadius(r + 20);
// Place Labels
arcs.append("svg:text")
.attr("transform", function(d) { return "translate(" +
pos.centroid(d) + ")"; })
.attr("dy", 5)
.attr("text-anchor", "middle")
.attr("fill", function(d, i) { return colorL(i); }) //Colorarray
Labels (alt: .attr("fill", "#FFF")
.attr("display", function(d) { return d.value >= 2 ? null :
"none"; }) //Don't show if value is smaler than 2
.text(function(d, i) { return d.value.toFixed(0) + "%"}); //
Waarden inplaatsen