Options
All
  • Public
  • Public/Protected
  • All
Menu

Specifies the layout of the chart

Index

Enumeration members

grid

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

mixed layout OrgChart.layout.mixed = OrgChart.mixed = 1;

let chart = new OrgChart('#tree', {
layout: OrgChart.layout.mixed
});
normal

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

tree layout OrgChart.layout.tree = OrgChart.tree = 2;

let chart = new OrgChart('#tree', {
layout: OrgChart.layout.tree
});
treeLeft

treeLeft layout OrgChart.layout.treeLeft = 5;

let chart = new OrgChart('#tree', {
layout: OrgChart.layout.treeLeft
});
treeLeftOffset

treeLeftOffset layout OrgChart.layout.treeLeftOffset = OrgChart.treeLeftOffset = 3;

let chart = new OrgChart('#tree', {
layout: OrgChart.layout.treeLeftOffset
});
treeRight

treeRight layout OrgChart.layout.treeRight = 6;

let chart = new OrgChart('#tree', {
layout: OrgChart.layout.treeRight
});
treeRightOffset

treeRightOffset layout OrgChart.layout.treeRightOffset = OrgChart.treeRightOffset = 4;

let chart = new OrgChart('#tree', {
layout: OrgChart.layout.treeRightOffset
});

Legend

  • Constructor
  • Property
  • Method
  • Static property
  • Static method

Settings

Theme

Generated using TypeDoc