You need to separately add the text: node.append("text") .attr("dx", ".10em") .attr("dy", ".10em") .text(function(d) { return d.name; });.
確定! 回上一頁