Force Graph
✓ Published0🌍 Public
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 descriptionReact Starter code.
MIT Licensed