This is an example of the effect you can generate by playing with the forceLink parameters and the forceManyBody parameters.
This graph radially expands. Try dragging it around - nodes will stay where you put them but the rest will expand outwards.
This effect can be created in two steps:
- Set the
forceLinkstrength to 0. This removes the link force while maintaining the lines between nodes.
- Set the charge to a small negative number.
It’s a bit useless in this particular example, but interesting applications could arise from this effect. See if you can come up with any!
Hope you liked this example! You can click here to return to the rest of the force directed graph series.