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

cluster attract ?? or more closer nodes #3

Open
Lora336 opened this issue Jun 18, 2021 · 2 comments
Open

cluster attract ?? or more closer nodes #3

Lora336 opened this issue Jun 18, 2021 · 2 comments

Comments

@Lora336
Copy link

Lora336 commented Jun 18, 2021

hi again @vasturiano.
thank you very much. It really helped.

I got more questions.

  1. Can the nodes gather closer to the center at screen?
    image

  2. Can nodes come closer each node?(in same group)
    image

like : https://bl.ocks.org/ericsoco/d2d49d95d2f75552ac64f0125440b35e

or

https://bl.ocks.org/mbostock/7881887

thank you for read it. 😨

@vasturiano
Copy link
Owner

@Lora336 thanks for reaching out.

  1. You should be assigning the center coordinates of each of the clusters, via the .centers method. I believe those other examples use additional attraction and collision forces to dynamically manipulate the coordinates of the cluster centers.
  2. That should be doable by calibrating the intensity of the force via .strength.

@Lora336
Copy link
Author

Lora336 commented Jun 21, 2021

@vasturiano

thank you for reply !

I'll try it again. have a nice day!

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