d3-force icon indicating copy to clipboard operation
d3-force copied to clipboard

add clustering force

Open randName opened this issue 6 years ago • 6 comments

Based on what I wrote for https://github.com/randName/ASDvis

Sounds like "Charge Colors" mentioned in #2 , but that seems to be forgotten. Will document later, but I'm not sure if there will be changes to implementation.

randName avatar Oct 06 '19 23:10 randName

@randName Hey, do you have any visualization examples or illustrative examples? I think this PR could help me solve my problem.

Nibiri avatar Jan 24 '20 07:01 Nibiri

yep: https://randna.me/ASDvis/ it keeps the dots within the circle groups

randName avatar Jan 24 '20 07:01 randName

@randName cool visualization, do you think it would work if the nesting level was higher? Снимок экрана 2020-01-24 в 15 39 02 just like here

Nibiri avatar Jan 24 '20 08:01 Nibiri

@Nibiri I'm unsure of how nesting would work, but if you want annular groups then you can probably borrow some stuff from forceRadial

feel free to use the grouping stuff I wrote, that's pretty much the only thing i added on top of forceManyBody

randName avatar Jan 24 '20 08:01 randName

@randName Good,thank you for you answer!

Nibiri avatar Jan 24 '20 10:01 Nibiri

In https://github.com/d3/d3-force/pull/167 forceRadial has an accessor for the center, which can help clustering around various central nodes. I'm not sure it totally covers the use cases you had in mind, though?

Fil avatar Jul 08 '20 12:07 Fil