How to make link label on link instead of through link!

How to make link label on link instead of through link!

In the middle, not on the left or right.As shown in the figure, cover the edges behind the words

https://gojs.net/latest/intro/linkLabels.html

You probably want to use an Auto panel to give the text a background. An example can be seen in the State Chart sample.

1 Like

I want the panel of label to follow the link, not across it; as shown in the direction of the arrow

If you had read the Introduction page that jhardy had linked to, you would have found how to do what you appear to be asking for: GoJS Link Labels -- Northwoods Software

1 Like

When panel is added, LinkLabelSegmentOrientation does not work.As shown in the figure

Thank you, walterjhardy
In accordance with your suggestion, I have made some modifications and have succeeded. Thank you.

Put segmentOffset: new go.Point(0, -10), segmentOrientation: go.Link.OrientUpright on panel