-
Notifications
You must be signed in to change notification settings - Fork 377
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
d3.forceCollideRect? #110
Comments
@martgnz you may want to have a look at d3-bboxCollide. That force plugin aims to solve exactly what you're describing. |
@vasturiano Great find! Thanks, I'll try it. But I still think that it makes sense to have this force inside d3 in some form or another. |
Related: mapbox/polylabel#63 |
Also related: d3fc-label-layout |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
While making cartograms I'm finding that the collide function of this block works much better than just using d3.forceCollide, as it seems to be made for squares rather than circles with a certain radius.
Is there a way to emulate its behaviour with the current forces available? If not, does it make sense to have it inside d3-force in some form?
The text was updated successfully, but these errors were encountered: