labelGroup.append("text")
                .attr("id", function(d, i) { return pie.cssPrefix + "segmentMainLabel" + i + "-" + section; })
                .attr("class", pie.cssPrefix + "segmentMainLabel-" + section)
                .text(function(d, i) {
                    var str = d.label;