third
This interactive D3.js network graph maps an ecosystem hierarchy, showing continents connected to their resident species, with node size encoding average weight and color distinguishing root, continent, and species levels. Built with d3.v7, the visualization uses d3.forceSimulation with link, charge, center, and collide forces for physics-based layout, while d3.scaleSqrt and d3.scaleOrdinal manage proportional sizing and color coding. Users can drag nodes to reposition them and hover over elements to inspect species details like lifespan, habitat, and diet, with data parsed from CSV via d3.csvParse.
AI-generated descriptionEcosystem Network Visualization
An interactive D3.js visualization displaying the relationships between continents, species, and their traits.
Features
- Interactive Network Graph: Drag nodes to explore relationships
- Color-Coded Levels: Root (yellow), Continent (green), Species (orange)
- Node Sizing: Proportional to average weight
- Hover Details: View comprehensive species information
- Force Simulation: Physics-based layout for optimal positioning
Project Structure
index.html- Main HTML filestyles.css- Stylesheetindex.js- Entry point (ES6 modules)data.js- Dataset managementnetwork.js- D3 network visualization logic
Running
Open index.html in a modern browser or serve locally with
a web server.