Gojs graph force nodes vertically in straight line

Hi,

Is there a way I can force layout to align vertically all nodes, so that it looks like a straight line, and allow the link to auto align.

Thanks and Regards
Aanjan Hari

If the nodes are in the correct order, you could use GridLayout with GridLayout.wrappingColumn set to 1.

If the graph is a simple chain of nodes (i.e. a sequence of Nodes and each Link connects a consecutive pair of Nodes), then you could use a TreeLayout with TreeLayout.angle set to 90.

A screenshot or sketch of what you want would have helped.