How x80110/migration-visualization works
Project type and purpose
• This is a static, data-driven web application (“Global Migration Data Explorer”) intended for interactive data visualization.
File structure
Top-level:
– HTML pages (index.html, stocks.html, flows_by_sex.html, flows_by_type.html)
– JS “entry” scripts (chord-chart.js, sankey-chart.js, prepare-data.js)
– Data directories:
• data/ (raw CSV + country metadata)
• json/ (prepared JSON files per flow and stock measure)
• static/texts/ (markdown/JS for descriptive copy)
– libs/ (third-party JS: chord.js, parsemd.js)
– styles.css
Patterns & build:
– A Node-based preprocessing step (prepare-data.js) converts CSV → JSON.
– No dynamic server: all assets are served statically (can be hosted on GitHub Pages or any static HTTP server).
– Each HTML page loads:
• DataLoader (XHR/fetch of JSON)
• Chart modules (Sankey or chord)
• parsemd.js to render markdown text
README for additional insights
– Confirms use of multiple estimation methods → multiple JSON datasets.
– Highlights open-access, client-side interactivity.
– Mentions D3-style visualizations, though direct dependency is chord.js (a D3 plugin) and sankey-style code.