Skip to main content
100%

asiign3-6(world-map)

✓ Published0🌍 Public
Ppardha1411
Last edited Jul 21, 2023
Created on Jul 21, 2023
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes