Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hybrid(horizontal + vertical) OrgChart #61

Closed
gupta-abhi26 opened this issue Aug 30, 2016 · 6 comments
Closed

Hybrid(horizontal + vertical) OrgChart #61

gupta-abhi26 opened this issue Aug 30, 2016 · 6 comments

Comments

@gupta-abhi26
Copy link

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 ?

@gupta-abhi26 gupta-abhi26 changed the title Horizontal + vertical OrgChart Hybrid(horizontal + vertical) OrgChart Aug 30, 2016
@dabeng
Copy link
Owner

dabeng commented Aug 30, 2016

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

@dabeng
Copy link
Owner

dabeng commented Sep 7, 2016

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

@dabeng dabeng closed this as completed Sep 7, 2016
@dabeng dabeng reopened this Sep 7, 2016
@dabeng dabeng closed this as completed Sep 11, 2016
@gupta-abhi26
Copy link
Author

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

@MarcusPhan
Copy link

MarcusPhan commented Nov 19, 2021

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!

@springgrass11
Copy link

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

@SlimGary
Copy link

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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants