NetworkChartLEGENDS
✓ Published0🌍 Public
A network diagram of character interactions from Les Misérables uses a force-directed layout with nodes colored by character group and a legend mapping each category. The visualization applies a D3 force simulation (d3.forceSimulation with link, charge, and center forces) to position nodes, while links are drawn as lines with stroke widths proportional to interaction value. A color legend, built via a custom colorLegend function, displays the scale domain using d3.scaleOrdinal with d3.schemeCategory10. Node positions update on simulated ticks, and the source data comes from a JSON file containing nodes and links.
AI-generated descriptionMIT Licensed