@longtd wrote:
Hello All,
I am new to gojs. I find it a very good tool to create diagram. I am studying the LayeredDigraphLayout. The diagram connect nodes in layer, the link 's "from" is node at higher layer, and the link 's "to" is node at lower layer, and the diagram show a link from top to bottom layer. However, there are nodes at the same level and I want to connect (link) them. Please show me how to create link between same level nodes in LayeredDigraphLayout by example.
Eg: node A1 and A2 is at same layer 1 and I want to connect A1 to A2 with horizontal line.
So I have link: { "from": "A1", "to": "A2", "labelKeys": 1, "category":"productA", "text":""}
It means I want to set this link as label link but it does not work.I read the API label node but I do not understand how to set node as label node, set label link.
Please help
Thank you very much.
Posts: 1
Participants: 1