Position of the Link Text

Right now, it seems that when we want a text on links, it seems to be placed midway from the From Node to the To Node. How can we place it near the ToNode? Something line this?

You probably want to set the label’s segmentIndex property to -1 or something like that along with some other segment… or alignment properties. Learn more about link labels at: Link Labels | GoJS