🌍 Public
Viewing a saved revision (read-only)
b1464d981aac4e8e8c3154bfabe850b4
Untitled
This example demonstrates a minimal React application that renders an interactive visualization using D3.js. It displays a force-directed graph where nodes and links are positioned and animated through d3.forceSimulation. The React component manages the SVG container as a ref and directly manipulates the DOM to update node positions and link paths on each simulation tick. The code imports specific D3 functions including forceSimulation, forceLink, forceManyBody, forceCenter, and uses a drag interaction via d3.drag. Data is created inline as a small set of test nodes and edges.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.