D3.js Tree Node Layout Remove Root Node
Please, I am searching for a solution to not display the root node and connecting lines to it. I have already tried to append multiple append('svg:svg') and populate those with roo
Solution 1:
You can just pop out the last node you make in update(source)
, which is the root node.
like this:
// Compute the new tree layout.
var nodes = tree.nodes(root).reverse();
nodes.pop()
Post a Comment for "D3.js Tree Node Layout Remove Root Node"