Orientation of link label

HI here I have created rectangular box for to show values on link. and that rectangular box and label should have orientation of the link. Here i have attached image which expected and which I m getting.aaaa

. white theme image is represents which i expected. and black theme which is actual .

You want to set GraphObject | GoJS API on the label GraphObject. Please read GoJS Link Labels -- Northwoods Software