Layouting Challenges with @visx/network #1904
Unanswered
golansoffer
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys,
I'm using @visx/network to render multiple linked lists stacked on top of each other, all within the same SVG. Each row consists of 4 nodes, with each node linked to the next one.
I initially tried yoga-layout, but it’s hard to customize for my needs. Here’s my challenge:
Additionally, I need to dynamically reveal nodes—starting with only the first node and its link, then progressively rendering the second node with its two links (left and right), and so on.
What’s the best way to achieve this controlled, step-by-step rendering while also handling custom node layouts like this? Should I manage it via state updates, or is there a better layout strategy for this setup?
Thanks!
Note: In the picture, there’s only one line, but in my case, I need to stack multiple lines on top of each other.

Beta Was this translation helpful? Give feedback.
All reactions