Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150930 | Jan 24,2020 02:40 PM UTC | Jan 30,2020 11:15 AM UTC | jQuery | 5 |
![]() |
Tags: ejDiagram |
Hello good morning, how to align more than two assistants to the left

required result


//Customize subtree orientation
function getLayoutInfo(diagram, node, options) {
if (!options.hasSubTree) {
options.orientation = node.addInfo.orientation;
options.type = "left";
}
}
$("#diagram").ejDiagram(
{
layout: { type: "organizationalchart", getLayoutInfo: getLayoutInfo },
}); |
Hi Ruben,
Please set options type as Left in the getLayoutInfo function to achieve your requirement. Please refer to a code example and the sample below.
Code example:
//Customize subtree orientationfunction getLayoutInfo(diagram, node, options) {if (!options.hasSubTree) {options.orientation = node.addInfo.orientation;options.type = "left";}}
$("#diagram").ejDiagram({layout: { type: "organizationalchart", getLayoutInfo: getLayoutInfo },});
Help documentation: https://help.syncfusion.com/js/diagram/automatic-layout#assistant
Regards,Shyam G
Hi Ruben,Could you please confirm us whether you are using EJ1 Javascript or EJ2 Javascript?Regards,Shyam G
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.