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

how to avoid nodes overlapping cluster labels #20

Open
christianvoigt opened this issue May 19, 2017 · 0 comments
Open

how to avoid nodes overlapping cluster labels #20

christianvoigt opened this issue May 19, 2017 · 0 comments

Comments

@christianvoigt
Copy link

Hi, thanks for taking care of dagre!

I am currently experimenting with clusters, clusterLabelPos:'top' and rankDir:'BT'. This leads to a layout where the nodes within a cluster are positioned over the cluster labels. Is there any chance to get them out of the way?

In dagrejs/dagre-d3#156 @cpettitt said:

"Looks good! It would be possible to get the edges to route around the cluster label by doing some of this in dagre - e.g. adding a dummy node to the cluster at the right rank with the size of the label."

Is it easy to add such dummy nodes?

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

1 participant