Gradient Link or two coloured link

Is there a possibility in GoJS to get multi coloured gradient links? A single link with two colours half of link inone colour and another half in different colour.

What route do you expect the links to take?

You could try using either TwoStrokeLink or GradientLink, but there might be some restrictions that would make one or both unsuitable for your app.

This example is now obsolete. Here is a MultiColoredLink class that implements support for a variable number of colors, new for v2.1.24:
https://gojs.net/latest/samples/MultiColorLinks.html

The Link template in that sample will work with up to 5 colors, but you can change the template to have as many or as few colors as you need.