Choropleth map
✓ Published0🌍 Public
This choropleth map displays global population data by country, with a threshold color scale using `d3.scaleThreshold` and `d3.schemeBlues`. The example loads world GeoJSON topology and population CSV data via `d3.json` and `d3.csv`, rendering the map with `d3.geoPath` and a Mercator projection. Interactive buttons allow switching between music genres, though the map itself does not respond to these selections. The visualization uses D3 v4 and SVG rendering within a 400x300 viewport.
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