$(window).on("load",(function(){var t=d3.select("#radial-tree").append("svg").attr("width",900).attr("height",760).append("g").attr("transform","translate(450,450)"),e=d3.layout.tree().size([360,340]).separation((function(t,e){return(t.parent==e.parent?1:2)/t.depth})),r=d3.svg.diagonal.radial().projection((function(t){return[t.y,t.x/180*Math.PI]}));d3.json("../../../app-assets/data/d3/tree/radial-tree.json",(function(a,n){var s=e.nodes(n),d=e.links(s),l=(t.selectAll(".d3-tree-link").data(d).enter().append("path").attr("class","d3-tree-link").attr("d",r).style("fill","none").style("stroke","#e3e3e3").style("stroke-width",1.5),t.selectAll(".d3-tree-node").data(s).enter().append("g").attr("class","d3-tree-node").attr("transform",(function(t){return"rotate("+(t.x-90)+")translate("+t.y+")"})));l.append("circle").attr("r",4.5).style("fill","#fff").style("stroke","#99B898").style("stroke-width",1.5),l.append("text").attr("dy",".31em").attr("text-anchor",(function(t){return t.x<180?"start":"end"})).attr("transform",(function(t){return t.x<180?"translate(8)":"rotate(180)translate(-8)"})).style("font-size",12).text((function(t){return t.name}))}))}));