0
这里是图像样本我怎么想都看: http://i.stack.imgur.com/ro2kQ.png需要对D3馅饼布局添加一行一些帮助标记
我正在一个饼图,但我想添加一行到无标记>值。 任何帮助,将不胜感激。
这里是;
arcs.append("svg:text")
.attr("transform", function(d) { //set the label's origin to the center of the arc
//we have to make sure to set these before calling arc.centroid
d.outerRadius = outerRadius + 50; // Set Outer Coordinate
d.innerRadius = outerRadius + 45; // Set Inner Coordinate
return "translate(" + arc.centroid(d) + ")";
})
.attr("text-anchor", "middle") //center the text on it's origin
.style("fill", "Purple")
.style("font", "bold 12px Arial")
.text(function(d, i) { return dataSet[i].label; });
的可能重复的[d3.js具有成角度的/水平标签饼图](http://stackoverflow.com/questions/21769872/d3-js-pie-chart-与棱形水平的标签) – Gilsha 2015-03-03 08:36:10