jOrgChart icon indicating copy to clipboard operation
jOrgChart copied to clipboard

How to make the Node which has no child closer to Parrent?

Open dungla2011 opened this issue 9 years ago • 3 comments

Please see the image Thank you much!

01

dungla2011 avatar Apr 17 '15 09:04 dungla2011

Any idea?

dungla2011 avatar Apr 23 '15 04:04 dungla2011

+1

navido avatar May 26 '15 13:05 navido

Hi @dungla2011 @navido . I think this demand will conflict with the core idea of jOrgChart that is making use of html table tag to build up orgchart, one td contains one node. If you were to reduce the distance between two sibling nodes according to your thought, the table layout will be destroyed.

While, I got another solution based on OrgChart(you can regard it as 2nd-generation of jOrgChart). With the help of option "direction", we can get a horizontal orgchart. On that moment, node which has no child will be closer to its parent. This is the demo . The following is a snapshot. left2right Good luck! :blush:

dabeng avatar May 08 '16 15:05 dabeng