vasturiano/d3-force-cluster-3d

cluster attract ?? or more closer nodes

Opened this issue · 2 comments

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. 😨

@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.

@vasturiano

thank you for reply !

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