I am using the d3.js pack() method to pack the circles. But I want to leave an empty circle in the center like a gap, and then pack the circles around it. I tried using forceSimulation without luck. I want to achieve something like shown in the picture using pack().
2
Answers
You can add a first Big circle that you don’t display
like I did here :
https://observablehq.com/d/220e0ac384e98fd0
Not displaying first circle
EDIT:
To sort bubbles to have bigger one at center:
I also updated my observable to add a sort toggle