As you can see in the diagram many links are crossing the nodes which looks dirty (NODE1, NODE2, RAM1, SSD3), I want to send all the links lines backward.
Please let me know how to achieve this by setting link template setting attributes. Currently I am using the following linkTemplate-
diagram.linkTemplate =
$(go.Link,
{
Are those big parts Groups? Try setting avoidable to false in the group template. Node | GoJS API
It also would help to move those nodes a bit farther apart. When they are too close or when they overlap, it’s hard to find any route that avoids nodes.
AvoidsNodes link routing will work all the time, unless circumstances such as what I mentioned above prevent such a route to be found.
Use Layers to control the z-ordering of Links, regular Nodes, and Groups. You can do that in the template by setting (or binding) Part.layerName to “Foreground” or “Background”. For more discussion: GoJS Layers -- Northwoods Software