I want to add childnodes on click of a node in forcelayout pattern d3js application, here is my jsfiddle example. Here is childData for childnodes
var childData = [
{
"name": "x",
"size": 1983
}, {
"name": "y",
"size": 2047
}, {
"name": "z",
"size": 1375
}, {
"name": "t",
"size": 1375
}]
in the example. I did something like this in tree layput pattern but for forcelayout pattern i am facing issue to plot the nodes. Please help me out.