Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Choropleth map

Public visualization

Choropleth map

0 stars0🌍 Public
Ffkara09
Last edited Sep 28, 2022
Created on Sep 28, 2022
Forked from Hello VizHub

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 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.

Comments

Sign in to join the discussion.

MIT Licensed