1

i am using d3.js and i have created the tree structure thats working fine for me.But now i am facing problem how to create the rectangle between the diagonal path.i am not getting any idea.`

var diagonal = d3.svg.diagonal()
.projection(function(d) { return [d.y, d.x]; });
......

/ Enter the links.
link.enter().insert("path", "g")
.attr("class", "link")
.style("stroke", function(d) { return d.target.level; })
.attr("d", diagonal);

can you please guide me how i can do this.

enter image description here

user3106347
  • 639
  • 2
  • 10
  • 27

0 Answers0