Marvel Characters | Force layout with images
✓ Published0🌍 Public
TThanaporn-sk
Last edited Oct 8, 2016
Created on Oct 8, 2016
This example visualizes Marvel characters as a force-directed graph, where nodes are character portraits and links show relationships between heroes, villains, and teams. Users can click any node to reveal the character’s identity and a link to their Marvel webpage. It uses d3.layout.force() for physics simulation, d3.layout.tree().links() for hierarchical edge construction, and SVG rendering with animated transitions on mouse events. The data is loaded from a local JSON file containing character metadata and image URLs.
AI-generated descriptionForce layout test/experiment with images
Sources:
- Force Layout
- Force-based label placement
- Collapsible force layout with directed paths and images/text in the nodes.
- Labeled Force Layout
forked from <a href='http://bl.ocks.org/eesur/'>eesur</a>'s block: <a href='http://bl.ocks.org/eesur/be2abfb3155a38be4de4'>d3 | Force layout with images</a>
mit Licensed