Skip to main content
100%

Force Graph

✓ Published0🌍 Public
Bbenoldenburg
Last edited Mar 11, 2021
Created on Mar 11, 2021
Forked from React Starter

A force-directed graph arranges three unconnected nodes (types A, B, and C) into a circular layout using a D3 force simulation. The visualization responds to a dropdown selector that toggles the X-axis between “None” and “Type,” adjusting the horizontal force via `d3.forceX` to group nodes by category. Built with React and `d3.forceSimulation`, the SVG renders circles whose positions update on each simulation tick, while the layout recomputes on user input. The code includes commented-out tooltip and drag behavior, though neither is active in the current example.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes