🌍 Public
Viewing a saved revision (read-only)
7dc4b9bf5c47453298d9160e05130675
Activity6_question 3
This example visualizes a relationship network using a force-directed layout. It employs D3.js’s `d3.forceSimulation` and `d3.forceLink` to position interconnected nodes, with `d3.drag` enabling interactive node manipulation. The graph displays circular nodes and curved link paths, rendered via SVG. The visualization loads data from an external JSON source, mapping node IDs and link sources/targets to construct the topology. Styling applies an orange node fill and a distinct blue color for the highlighted link, while the simulation continuously updates positions through tick events.
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.