Skip to main content
100%

D3-Force: Split Categorical

✓ Published0🌍 Public
TThanaporn-sk
Last edited Mar 9, 2017
Created on Mar 9, 2017

A force-directed network of circles, sized by GDP and colored by continent, settles into a clustered layout. A "Toggle Split" button triggers a categorical separation: the `d3.scalePoint` scale maps each continent to a distinct x-coordinate, and an additional `d3.forceX` pushes nodes toward their group’s position, with labels emphasizing the grouping. The simulation uses `d3.forceSimulation`, `d3.forceManyBody`, and `d3.forceY` to manage repulsion and centering.

AI-generated description

forked from <a href='http://bl.ocks.org/cjhin/'>cjhin</a>'s block: <a href='http://bl.ocks.org/cjhin/077ecb0fd03f0abd576d39c70563a724'>D3-Force: Split Categorical</a>

mit Licensed

Similar vizzes