I want to plot a GoJs diagram which follows AlignmentStart pattern. For Every node in tree which have children should come in horizontal arrangement and for every node without children i.e. leaf nodes, should follow vertical arrangement/pattern. This pattern should be followed for nodes at all layers.
I have tried using different layout options to achieve above behavior. I even tried Custom layouts but am unable to handle all cases as my tree can be dynamic i.e. can have multiple layers. Attached is the sample image that i am trying to achieve.

Here's a custom TreeLayout that I believe does what you want:
You could use it in the following manner:
The result:
A complete stand-alone sample is at: https://gojs.net/extras/DualTreeLayout3.html As always, the complete source code is in the page itself.