Is layered / hierarchy possible in d3-graph? #522
Unanswered
SciTechDude
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Team,
Is it possible to enforce layer/hierarchy on the graph to be rendered. As an example,
I've node as below
Nodes = [ n1, n11, n21, n111, n112, n121,122]]
Edges = n1 -> [n11, n21 ] , n11 -> [n111, n112], n21 -> [n121,122] with layers as below.
Layer-1 [ n1]
Layer-2 [ n11, n21 ]
Layer-3 [ n111, n112][n121,122]
.... and so on.
While I am able to get force directed graph using sample examples provided (see SO question for images), I don't see an option to provide layering or hierarchy like DAG onto graph.
What can be done in this case?
SO question: https://stackoverflow.com/questions/71667048/is-layered-hierarchy-possible-in-d3-graph
Result:

Desired:

Beta Was this translation helpful? Give feedback.
All reactions