the dataset is a json file like this [{from: x, to: y}, {from: x, to: z}] and so on.
partitioned_data = d3.partition().size([2*Math.PI, 100]);
root_node = d3.hierarchy(data).sum(d => d.size);
partitioned_data(root_node);
this is what I have so far
I'm getting this as the root node:
... and root_node.children
is still undefined. I'm using an example dataset which is just 99->77, 77->112 and 112->82
. I want it to give a hierarchy of root_node = 99
and root_node.children[0] = 77
and so on.