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 collisions of nodes. #339

Open
ChristophKind opened this issue Nov 9, 2023 · 1 comment
Open

How to avoid collisions of nodes. #339

ChristophKind opened this issue Nov 9, 2023 · 1 comment

Comments

@ChristophKind
Copy link

Hello,

I have a graph with several nodes.
Until the graph is renderes some nodes are overlapping eachother.
How to avoid this overlapping?

Regards
Chris

image

@vasturiano
Copy link
Owner

@ChristophKind you can add a collision force to separate the nodes apart, a bit like in this example:

.d3Force('collide', d3.forceCollide(Graph.nodeRelSize()))

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