GetOrgChart jQuery widget has an oeriantation parameter to display a vertical org chart
Orientation of the GetOrgChart widget.
- getOrgChart.RO_TOP
- getOrgChart.RO_BOTTOM
- getOrgChart.RO_RIGHT
- getOrgChart.RO_LEFT
Default value: getOrgChart.RO_TOP
Code Examples:
$("#people").getOrgChart({ orientation: getOrgChart.RO_LEFT, dataSource: [ { id: 1, parentId: null, Name: "Amber McKenzie"}, { id: 2, parentId: 1, Name: "Ava Field"}, { id: 3, parentId: 1, Name: "Evie Johnson"}] });
JSFIDDLE Demo
user2231308
source share