{"version":"1.0","type":"rich","title":"Force layout (foci)","description":"A force-directed layout arranges 1,000 circles into four distinct clusters, each tied to one of four color-coded categories. The simulation uses `d3.forceSimulation` with `d3.forceX` and `d3.forceY` to pull nodes toward quadrant-specific foci, while `d3.forceCollide` prevents overlap and `d3.forceManyBody` applies a weak charge. A custom `pythag` function constrains every node inside a large circular boundary drawn as an SVG circle. The visualization renders in SVG, with node positions updated each tick via D3’s data join.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-b437cad888a4ffde174e57c304bdee0c?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}