Skip to content
Snippets Groups Projects
Commit 405d736c authored by Cee Nell's avatar Cee Nell
Browse files

draw all level 2 nodes expanded

parent a0fe3a7a
No related branches found
No related tags found
1 merge request!54Dendrogram open on load
...@@ -324,7 +324,8 @@ function createDendrogram(result) { ...@@ -324,7 +324,8 @@ function createDendrogram(result) {
root.descendants().forEach((d, i) => { root.descendants().forEach((d, i) => {
d.id = i; d.id = i;
d._children = d.children; d._children = d.children;
if (d.depth !== 0) { // modify here to adjust which level nodes are open
if (d.depth === 2) {
d.children = null; d.children = null;
} }
}); });
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment