dagrejs / dagre-d3

A D3-based renderer for Dagre
MIT License
2.83k stars 588 forks source link

Clustering nodes in groups and horizontal placement #345

Closed sajoku closed 5 years ago

sajoku commented 5 years ago

I'm trying to create a network type graph using the clustering demo. There are groups (LAN) and they can have multiple nodes (Servers). The graph I'm now generating get's really wide as all nodes are placed horizontally. I want to tell the graph to place not more than 5 nodes next to each other. Is there some way of doing this? I tried altering order: and rank: but that does not seem to do anything.

This is how it currently look.

vlan with nodes

Anyone that can point me in the right direction?

sajoku commented 5 years ago

Closing this since there does not seem to be anybody having the same issue or there's not a, easy, solution.

larissa-n commented 4 years ago

Was this ever solved?

sajoku commented 4 years ago

Nope it wasn't @larissa-n . I eventually went with a different library named visjs