How to use the D3 diagonal function to draw curved lines?
问题 I looked at sample http://bl.ocks.org/mbostock/raw/4063570/: It produces nice merged lines from source target from left to right. In my case I need to layout nodes manually and put x, y coordinates. In this case the lines are not merged at source nodes. Here is the test code that reproduce this problem: var data = [ {name: "p1", children: [{name: "c1"}, {name: "c2"}, {name: "c3"}, {name: "c4"}]}]; var width = 400, height = 200, radius = 10, gap = 50; // test layout var nodes = []; var links =