Greg Forel
Greg Forel

Reputation: 2569

Org chart layout algorithm with a special need

Is the John Q. Walker II node positioning algorithm able to find the node positions for an org chart like below, where each node can either have their children displayed stacked (see node 1.4, 1.4.2, 1.3.1...), or "Org" style (as node 1 and 1.3)?

enter image description here

Upvotes: 0

Views: 743

Answers (1)

Oleg Imanilov
Oleg Imanilov

Reputation: 2751

You can heavily adapt the algorithm, but in general the answer is "No". The fundamental assumption of this node positioning algorithm is all nodes of same level in the tree have same Y coordinate.

Upvotes: 2

Related Questions