D3-Force: Split Categorical
✓ Published0🌍 Public
FFrissAnalytics
Last edited Sep 4, 2018
Created on Apr 12, 2017
This example visualizes GDP data for 15 countries, grouped by continent, as circles in a force-directed layout. A button toggles a categorical split, applying an invisible categorical axis so nodes align by continent using `d3.forceX` with a `d3.scalePoint` domain. The simulation uses `d3.forceSimulation` with `d3.forceManyBody` and centering forces, rendering to SVG circles and text labels. Data loads from a CSV via `d3.csv`.
AI-generated descriptionforked 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