dabeng / OrgChart

It's a simple and direct organization chart plugin. Anytime you want a tree-like chart, you can turn to OrgChart.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hybrid(horizontal + vertical) OrgChart

gupta-abhi26 opened this issue · comments

I want to have horizontal(direction:'t2b') layout only till 2nd depth of nodes. After that, i want the succeeding nodes in vertical(direction:'l2r') layout. How to do this ?

Yes, I'm working on this feature. In fact, your demand is similar to this issue.

Hi @Destructrix .From version 1.2.0, users never have to worry about how to align a huge of nodes in one screen of browser. The option "verticalDepth" allows users to align child nodes vertically from the given depth. But currently, this option is incompatible with many other options or methods, like direction, drag&drop, addChildren(), removeNodes(), getHierarchy() and so on. These conflicts will be solved one by one in the later versions.
snapshot

Hi @dabeng, Thanks for the help. Truly appreciate your work.

Hi @dabeng,

I want to display the last 3 nodes in React, here is the image
image

You stated that from only version 1.2.0, verticalDepth can be used to solve this problem. However, I run "npm i @dabeng/react-orgchart verion", and it turns out to be only 1.0.0
image
image

I tried to update the version, but it just does not work. Could you please give me some insights into this problem, or suggest me other solutions?

Many thanks!

Hi @dabeng,
Is there a way to mix the vertical and horizontal different level instead for multi levels? and within different children?
Thanks!

Hi @Destructrix .From version 1.2.0, users never have to worry about how to align a huge of nodes in one screen of browser. The option "verticalDepth" allows users to align child nodes vertically from the given depth. But currently, this option is incompatible with many other options or methods, like direction, drag&drop, addChildren(), removeNodes(), getHierarchy() and so on. These conflicts will be solved one by one in the later versions.

Did you manage to install version 1.2.0 with react ?