Show / Hide Table of Contents

Links

OrgChart JS Assistant OrgChart JS Assistant

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 roundet links.
Edge link
Curve link

Link Labels


Link binding in OrgChart JS maps node data to link labels: nodes data:
 
 
{ id: "1" },
{ id: "2", pid: "1", createdAt: "Since 08/08/2018" },
{ id: "3", pid: "1", createdAt: "Since 05/04/2018" }
  
Here is how we bind the link labels:
 
 
    linkBinding: {
        link_field_0: "createdAt"
    },
  


Using the label event you can change the link labels: