OrgChart JS Documentation

Importing

OrgChart JS supports importing from CSV and XML:

CSV

 
  var chart = new OrgChart(document.getElementById("tree"), {
      menu: {
          importCSV: { 
              text: "Import CSV",
              icon: OrgChart.icon.csv(24,24, '#7A7A7A'),
              onClick: function(){ chart.importCSV(); }
          },
      ...
      },

  });    
    
This is a demo for importing a CSV file. (You could export, edit the file and then import it.)

XML

 
  var chart = new OrgChart(document.getElementById("tree"), {
      menu: {
          importXML: { 
              text: "Import XML",
              icon: OrgChart.icon.xml(24,24, '#7A7A7A'),
              onClick: function(){ chart.importXML(); }
          },
      ...
      },

  });