D3jsを初めて使用しています。私は折り畳み可能な木の中にjsonを表示しています。ツリーはうまく表示されていますが、ノードを結ぶ線はほとんど直線です。どのようにノードを接続する円弧の半径を制御するには? d3jsでこれを行う方法を教えてください。D3 js折りたたみ可能なグラフアークカーブ半径を増やす
作業plunkerリンクに添付
var treeData = JSON.parse('{"name":"pradeep","age":40,
"children": [{
"name": "naveen",
"description": 20,
"children": [{
"name": "interest",
"description": "displays the hobbies list",
"hobby": "S",
"hobby_name": "singinh"
}, {
"name": "profession",
"description": "describes the profession",
"profession": "blogger",
"salary": 20000,
"children": [{
"name": "cars",
"description": "car collections",
"children": [{
"name": "car-collections",
"description": "collections of cars",
"car_name": "audi",
"car_number": "8080"
}]
}]
}]
}]
}');
D3上にプロットする必要のあるJSONデータ - Plunker
あなたが "ほとんどストレート" とはどういう意味ですか?あなたは "関心"と "職業"の間の垂直分離を増やしたいのですが、それは問題ですか? –
@GerardoFurtadoはい。どの属性がこの属性の原因です。 – zilcuanu