One tree overlay another tree

I am wondering each isolated trees in a diagram can be separated instead of overlayed each other, see graphic below

What I expect it show something like following
Following are the sample code i wrote to reproduce the issue above:

Diagram

Minimal GoJS Sample

One thing that I forgot to mention is that re-arrange the data is not an option.

Thanks,

[QUOTE=zubinshi]
I am wondering each isolated trees in a diagram can be separated instead of overlayed each other, see graphic below

What I expect it show something like following

Following are the sample code i wrote to reproduce the issue above:

Diagram

Minimal GoJS Sample

[/quote]

I hope you realize that your diagram’s graph structures are not trees, which explains why TreeLayout might not do what you want.

You could try using LayeredDigraphLayout instead of TreeLayout. http://gojs.net/latest/samples/ldlayout.html