Create a grid layoput authomatically calculating authomatically the columns OrgChart.layout.grid = -1;
let chart = new OrgChart('#tree', {
layout: OrgChart.layout.grid
});
[See grid doc page for more details][https://balkan.app/OrgChartJS/Docs/Layout#grid]
mixed layout OrgChart.layout.mixed = OrgChart.mixed = 1;
let chart = new OrgChart('#tree', {
layout: OrgChart.layout.mixed
});
The default layout OrgChart.layout.normal = OrgChart.normal = 0;
let chart = new OrgChart('#tree', {
layout: OrgChart.mixed
});
chart.on('node-layout', function(sender, args){
if (args.pnode.id == 100){
args.layout = OrgChart.layout.normal;
}
});
chart.load(nodes)
tree layout OrgChart.layout.tree = OrgChart.tree = 2;
let chart = new OrgChart('#tree', {
layout: OrgChart.layout.tree
});
treeLeft layout OrgChart.layout.treeLeft = 5;
let chart = new OrgChart('#tree', {
layout: OrgChart.layout.treeLeft
});
treeLeftOffset layout OrgChart.layout.treeLeftOffset = OrgChart.treeLeftOffset = 3;
let chart = new OrgChart('#tree', {
layout: OrgChart.layout.treeLeftOffset
});
treeRight layout OrgChart.layout.treeRight = 6;
let chart = new OrgChart('#tree', {
layout: OrgChart.layout.treeRight
});
treeRightOffset layout OrgChart.layout.treeRightOffset = OrgChart.treeRightOffset = 4;
let chart = new OrgChart('#tree', {
layout: OrgChart.layout.treeRightOffset
});
Generated using TypeDoc
Specifies the layout of the chart