Hi,
I am using GoJs (V1.4.6) graphs to create layered and layered-horizontal layouts. I have ensured that my layout settings are identical to what has been shown here : Layered Digraph Layout.
Below is my code for “Layered” layout.
layout = make(go.LayeredDigraphLayout, {
direction: 0,
aggressiveOption: go.LayeredDigraphLayout.AggressiveLess,
cycleRemoveOption: go.LayeredDigraphLayout.CycleDepthFirst,
initializeOption: go.LayeredDigraphLayout.InitDepthFirstIn,
iterations: 4,
layeringOption: go.LayeredDigraphLayout.LayerLongestPathSource,
packOption: go.LayeredDigraphLayout.PackStraighten,
columnSpacing: 10,
layerSpacing: 35,
setsPortSpots: true
});
and I end up with the graph layout
I was expecting the node (with house like icon) to appear on the right-hand side of the transaction-like node( $ icon). What am I missing?. The first 3 levels appear OK but not there after.
Note : I have similar problem with “layered-horizontal” layout as well.
.Any help is highly appreciated.
Cheers,
Archie