Skip to main content
100%

D3-Force: Split Continuous

✓ Published0🌍 Public
FFrissAnalytics
Last edited Sep 3, 2018
Created on May 20, 2017

A force-directed graph of countries by GDP uses `d3.forceSimulation` with `d3.forceX` and `d3.forceManyBody` to position nodes on an SVG canvas. The "Toggle Split" button switches between a centered layout and one where nodes are pushed along a continuous linear scale mapping GDP values from left to right, with labels showing the domain endpoints. Data comes from a CSV file, and the simulation’s alpha and restart methods control the transition between states.

AI-generated description

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

mit Licensed

Similar vizzes