🌍 Public
Viewing a saved revision (read-only)
27b4be9941d648ab829a7010a4f5e7b3
Fork of Fork of Hello VizHub
This example visualizes a simple network of nodes and links using a force-directed graph layout. The code creates a simulation with `d3.forceSimulation` and `d3.forceLink` to position the elements, rendering them as SVG circles and lines. It also includes a text message displayed in a `div` element, updated via D3’s data join. The visualization is built with D3 v5, pulling the library from a CDN, and uses local CSS for styling. The data is hardcoded in the script, showing a basic interactive force layout.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.