Any idea why link labels are not oriented right along the link?

problem is this:

for some reason it seems that labels are attached to one segment… but rotate to match another segment… :S

any ideas?

this is how the label is defined:

           $GO(go.TextBlock, 'outcome',  // the label
                    name: 'LABELTHING',
                    textAlign: 'center', alignment: go.Spot.Center, alignmentFocus: go.Spot.BottomCenter,
                    stroke: '#242424',
                    segmentFraction: 0.5,
                    segmentOrientation: go.Link.OrientUpright
                }, ...debugShapeBindings(), // just something about opacity... or an empty array
                new go.Binding('text', 'label'),
                new go.Binding('visible', 'showLabel'),
                new go.Binding('font', 'defaultLinkFont', v => (v || 'bold 13px sans-serif')).ofModel(),
                new go.Binding('stroke', 'defaultLinkTextColor', v => (v || 'black')).ofModel()

You could try setting the segmentIndex. We can look into this after the holiday.

This is related to the way the midangle of a link is calculated. We’ve got a fix ready, which should be released soon, probably next week. In the meantime, you could set a segmentIndex on the label, as Walter suggested.

By the way, if no segmentIndex is set, the label will default to the center of the link, not whatever the segmentFraction is set to.

GoJS 1.7.12 is now beta, to be released soon, and should fix this problem: