-
vizulyNovember 17, 2017 at 8:39 am #8097
Hello,
You are SO close to making this work.
If you remove the viz.toggleNode(d) I believe it should work. viz.toggleNode() basically swaps the d.children and d._children arrays. The Tree will only display d.children values. So by calling viz.toggleNode(d) you are essentially hiding the children. As toggle will either open/close a node depending on its current state.
Let me know if that works for you.
– Tom
You must be logged in to reply to this topic.
© 2024 — vizuly.io