Assignment 8 Node-link diagram
✓ Published0🌍 Public
Hhxu51@usfca.edu
Last edited Mar 24, 2025
Created on Mar 24, 2025
This node-link diagram visualizes the connections between food-related Facebook pages and their chefs. The graph uses a force-directed layout where each node represents a page and links show relationships from an edges.csv file. The code loads data with `d3.csv`, then applies `d3.forceSimulation` with `forceLink` and `forceManyBody` to position nodes and edges. The SVG rendering updates positions on each tick, placing labels directly on nodes and styling links with a gray stroke.
AI-generated descriptionMIT Licensed