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

Is there a way to make a tree chart populate vertically rather than horizontally? #40

Open
abilashs90 opened this issue Jun 17, 2016 · 2 comments

Comments

@abilashs90
Copy link

Hi, Is there a way to make a tree chart populate vertically rather than horizontally?

@andreaferretti
Copy link
Owner

Well, what I usually do is insert the whole tree inside a g element with the transform=rotate(90) attribute.

This has the unfortunate effect of rotating labels as well, but you can insert the opposite rotation.

I have been thinking whether to add a flag to make the tree vertical, but I am not sure if the additional parameter would be worth, given that SVG graphics allows rotations

@abilashs90
Copy link
Author

Yes, I tried rotate, but that needs a lot of changes wrt margins etc. It would be a nice addon to a great library.

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

2 participants