Import
BALKAN OrgChartJS supports importing from CSV, XML and JSON files:
CSV
var chart = new OrgChart(document.getElementById("tree"), { menu: { importCSV: { text: "Import CSV", icon: OrgChart.icon.csv(24,24, '#7A7A7A'), onClick: function(){ chart.importCSV(); } }, ... }, });
XML
var chart = new OrgChart(document.getElementById("tree"), { menu: { importXML: { text: "Import XML", icon: OrgChart.icon.xml(24,24, '#7A7A7A'), onClick: function(){ chart.importXML(); } }, ... }, });
JSON
var chart = new OrgChart(document.getElementById("tree"), { menu: { importXML: { text: "Import XML", icon: OrgChart.icon.xml(24,24, '#7A7A7A'), onClick: function(){ chart.importXML(); } }, ... }, });This is a demo for importing. (You could export, edit the file and then import it agian.)