简体   繁体   English

treant.js我们可以在图表中创建两个根元素吗

[英]treant.js can we create two root elements in the chart

Hi I am trying to use treant.js for creating org structure. 嗨,我正在尝试使用treant.js创建组织结构。 the issue is director and secretary need to be shown in the same line with no connection as all the managers are below director something like shown in the picture can any one tell me how we can acheive this using treant.js Since this is the only free org chart java script i am using it any other suggestions are welcome enter image description here 问题是主任和秘书需要显示在同一行中且没有任何联系,因为所有经理都在主任以下。如图所示,任何人都可以告诉我如何使用treant.js做到这一点,因为这是唯一的免费方法组织结构图Java脚本我正在使用它其他任何建议都欢迎在此处输入图片描述

You can make them link to a single root node, and then use the option to hide the root node. 您可以使它们链接到单个根节点,然后使用该选项隐藏根节点。 I had to do the same thing 我必须做同样的事情

嗨,我能够通过创建伪节点作为根节点并将其隐藏来实现它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM