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