-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
cluster width, and position #276
Comments
@mingrammer need your help here. |
Its a problem I have too. My plan is to let diagrams generate a dot file as per #182 |
Hello @abhi0977 I'm experiencing a similar behavior. Had you managed to order or position the the nodes ? Thanks. |
Nope |
You didn't ask for it specifically but would you say the "problem" with your diagram is total width and lack of it autowrapping going on? Direct anwser though, positioning in relation to other graph objects is done using the rank graphiz attribute, but there are also size, pos, width, and several other attributes that would let you set what you are asking to set manually. I'd say most people are more often concerned about keeping the aspect ratio "readable" vs really trying to set sizes and positions by hand. The ratio and size attributes passed in as graph_attrs to Diagram() is probably what you want, if not you can you be a little bit more clear about the flow positioning goal along with the code that generated that image? |
@redNixon I've tried changing ratio, size, ratio with different settings, and it didn't change nothing at all. Only to remember you, that I have approx 50 nodes of the same cluster, all in the same column, and I will prefer to be aligned in different columns. Is not great having all the nodes in one column or at least to be presented in a webpage or report. I will continue testing, but to be honest, I have no experience with graphviz at all. Thanks! |
@sitereliabilityengineer correct, |
I have had some success using a transparent png (a non-existent png also works - if you don't mind the Warnings) in a I use the transparent It is a pain though and you have to fuss around with it to get it how you want, and it is still rarely exactly what you want. |
@abhi0977 if you change the "layout" engine to either "neato" or "fdp", and then for each Node set the pin to "true" and set the pos (position) to the "x,y" you want. |
I use the "invisible edge" method. See this answer for an example. |
I moved to d2 lang and life is better now https://text-to-diagram.com/?example=icons |
@pablodz I've also moved to D2 lang when I couldn't get cluster position placement as demonstrated in my diagram in #891, although since then that ticket has some good ideas thanks to @clayms. D2 is awesome too... but it also has a limitation in that it can specify a position placement field called |
this is how my diagram looks.
how can i set width, height and position of clusters?
The text was updated successfully, but these errors were encountered: