Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 6969

Add link labels dynamically

$
0
0

@rashedkoutayni wrote:

Hi,
I have extended the link data array myDiagram.model.linkDataArray in the flowchart example by adding one additional column that contains the value of a link label. For example, a row in the new array (called myLinkDataArray) looks like:
{from: -2, to: -10, points: E, __gohashid: 1696, 'link text'}
Now I would like to display the link text on the link itself in the diagram. I tried to do this with myDiagram.model.setDataProperty but unfortunately I didn’t know how to do it.
Would you please advise on how to iterate over the new link array myLinkDataArray and show the link label above each corresponding link?
Thanks !

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6969

Trending Articles