How can we add these lines to show different levels in tree layout?
just need to add these lines in the below hierarchy tree.
I am using this layout
layout: $(go.TreeLayout, {
alignment: go.TreeLayout.AlignmentStart,
angle: 0,
compaction: go.TreeLayout.CompactionNone,
layerSpacing: 24,
layerSpacingParentOverlap: 1,
nodeIndent: 2.0,
nodeIndentPastParent: 1.0,
nodeSpacing: 8,
setsPortSpot: true,
rowSpacing: 8,
setsChildPortSpot: true,
}),
You could try using that link template definition instead.
Finally, the third option is to have lines that are only vertical, without a horizontal segment. This is demonstrated at: Tree View With Vertical Lines