How to avoid horizontal line overlapping?

Hi All,
I am having one issue.

I am using Layout - TreeLayout and linkTemplate -->routing:go.Link.Orthogonal,curve: go.Link.JumpOver


Scenario 1:
Below is screen shot - where line vertical merges
<span =“Apple-tab-span” style=“white-space:pre”>



<span =“Apple-tab-span” style=“white-space:pre”> –> But what we want is : - no lines should merge or overlap.
<span =“Apple-tab-span” style=“white-space:pre”>
<span =“Apple-tab-span” style=“white-space:pre”>

<span =“Apple-tab-span” style=“white-space:pre”>

Scenario 2:
–>Below is screen shot - where line vertical merges
<span =“Apple-tab-span” style=“white-space:pre”>



<span =“Apple-tab-span” style=“white-space:pre”> –> But what we want is : - no lines should merge or overlap.
<span =“Apple-tab-span” style=“white-space:pre”>



Code :


myDiagram =

$(go.Diagram, “myDiagram”, // must name or refer to the DIV HTML element
{
initialAutoScale: go.Diagram.UniformToFill,
/*layout: $(go.TreeLayout,
{ angle: 0, treeStyle: go.TreeLayout.StyleLayered, layerSpacing: 200, nodeSpacing: 20,layerStyle: go.TreeLayout.LayerIndividual,alignment: go.TreeLayout.AlignmentCenterChildren,
nodeIndent:0,nodeIndentPastParent:0,layerSpacingParentOverlap:0,sorting: go.TreeLayout.SortingForwards,compaction: go.TreeLayout.CompactionBlock,
breadthLimit:0,rowSpacing:25.0,rowIndent:10.0,setsPortSpot:true,setsChildPortSpot:true})

myDiagram.linkTemplate =
$(go.Link, // the whole link panel
{
routing:go.Link.Orthogonal,
<span =“Apple-tab-span” style=“white-space:pre”> curve: go.Link.JumpOver
<span =“Apple-tab-span” style=“white-space:pre”> });

For scenario #1, we provide no general solution. However LayeredDigraphLayout will try to separate those links, if you happen to be using it.

But note that with TreeLayout you should not encounter that problem, unless you are using TreeLayout on a graph that is not tree-structured.

For scenario #2, try using “side” spots. Set fromSpot: go.Spot.RightSide, toSpot: go.Spot.LeftSide on the ports/nodes, and set setsPortSpot: false, setsChildPortSpot: false on the TreeLayout. (There is a similar property if you are using LayeredDigraphLayout.)