World Map Visualization
✓ Published0🌍 Public
A choropleth world map colors countries according to population values loaded from a CSV file. The visualization uses d3.geoNaturalEarth1 for the map projection and d3.geoPath to render GeoJSON country boundaries. A d3.scaleQuantize with a d3.schemeBlues color range maps numeric population data to fill colors, while countries without matching data appear green. The example demonstrates loading external GeoJSON from a GitHub repository and joining CSV data to map features.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed