。數據(topojson.feature(uk,uk . objects . subunit)。功能)
。輸入()。追加(“文本”)
。attr("class ",function(d){ return " subunit-label "+d . id;})
。attr("transform ",function(d){ return " translate("+path . centroid(d)+");})
。屬性(" dy "," . 35em ")
。text(function(d){ return d . properties . name;})