vizulyNovember 17, 2017 at 8:39 am #8097
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.
You must be logged in to reply to this topic.
© 2021 — vizuly.io