Links
Links are the main connections between the nodes.
You can have different types of links.
Rounded link
You can use OrgChart.LINK_ROUNDED_CORNERS constant to change the radius of the rounded links.
Edge link
Curve link
Link Labels
Link binding in OrgChart JS maps node data to link labels.
Nodes data
javascript
{ id: "1" },
{ id: "2", pid: "1", createdAt: "Since 08/08/2018" },
{ id: "3", pid: "1", createdAt: "Since 05/04/2018" }Binding
javascript
linkBinding: {
link_field_0: "createdAt"
},Using the label event you can change the link labels:
Links rendering
By default OrgChart JS renders links after the nodes are rendered. You can change this behavior:
javascript
OrgChart.RENDER_LINKS_BEFORE_NODES = true;