Viewing a saved revision (read-only)
91mZ02YUANPu4ZA7Ggf9F
This example compares two views of the same airline route network connecting airports in Spain and Brazil. A force-directed node-link diagram, built with d3.forceSimulation and forceLink, displays the network structure with nodes colored by country. An adjacent adjacency matrix view uses d3.scaleOrdinal and the d3.schemeTableau10 color palette, with matrix rows and columns reorderable by file order, degree, or cluster. The dataset comes from the CSV files hw8_network_edges.csv and hw8_network_nodes.csv, which include airport degree and cluster assignments.
AI-generated descriptionReact D3 Starter
A minimal React + D3 starter for building interactive data visualizations.
Files
index.html— page shell and import map (React + D3 from a CDN).index.jsx— mounts the<App />component.App.jsx— loadsdata.csvand renders the visualization.viz.js— D3 render entry point.renderCircles.js— draws the circles.useContainerDimensions.js— tracks the container size.data.csv— sample data.styles.css— page styles.
Getting started
Edit App.jsx to change what gets rendered; the preview updates live as you type.