asiign3-6(world-map)
✓ Published0🌍 Public
A choropleth world map colors countries according to population using a blue quantized scale. The visualization loads GeoJSON country boundaries from Natural Earth and joins them with population data from a CSV file via a country-name match. The code uses `d3.geoNaturalEarth1` for projection, `d3.geoPath` to generate SVG paths, and `d3.scaleQuantize` with `d3.schemeBlues[5]` for color encoding. Countries lacking matching data are rendered in black.
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