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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

graph: support for vertical direction #23

Open
kravemir opened this issue Oct 10, 2019 · 1 comment
Open

graph: support for vertical direction #23

kravemir opened this issue Oct 10, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@kravemir
Copy link

First, I would like to say, that this is a very useful project/tool, and I have been exactly for 馃憤

goda graph github.com/loov/goda/...:root | dot -Tsvg -o graph.svg

Regarding the issue. I'm visualizing internal package dependencies of my wip/hobby project, and there are many levels. In combination with "longer" package names, the graph is quite very wide, aspect ratio of ~ 7:1.

Would it be possible, to add flag --direction vertical to set graph's direction to be vertical? Or, maybe --direction top-bottom or --direction to-bottom indicating also, that it goes from top to bottom, not just any "vertical".

@egonelbre
Copy link
Member

egonelbre commented Oct 10, 2019

Honestly, I would like it to work as well. :D... currently the top-to-bottom rankdir is a mess mostly. It ends up much worse, that's why I didn't expose the dot option for it. I'll introduce it when it can reliably give decent output.

You can override the rankdir with:

goda graph github.com/loov/goda/...:root | sed s/rankdir=LR;/rankdir=TB;/ | sed s/tailport=e// | dot -Tsvg -o graph.svg

I'll add graphml support at some point #24, which would allow to open in yEd and do better layouting.

@egonelbre egonelbre added the enhancement New feature or request label Oct 10, 2019
@egonelbre egonelbre changed the title Support for vertical graph direction graph: support for vertical direction Feb 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants