Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Choropleth Map

Public visualization

Making a Choropleth Map

0 stars0🌍 Public
NNikhil Reddy Manda
Last edited May 17, 2021
Created on May 17, 2021

This choropleth map visualizes global HIV prevalence rates among adults aged 15-49 for the year 2017, using a yellow-to-red sequential color scale to encode the percentage of the population infected. The map renders country polygons via `d3.geoPath` with a `geoNaturalEarth1` projection, overlaid with graticules and interior boundaries. Missing data appears in gray. The visualization uses React for component structure, `useWorldAtlas`, `useData`, and `useCodes` hooks to load TopoJSON and CSV datasets, and `d3.scaleSequential` with `interpolateYlOrRd` to map values to colors.

AI-generated description

Making a Choropleth Map

Comments

Sign in to join the discussion.

MIT Licensed