Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Fork of Fork of Fork of D3: GeoEarth

Public visualization

Viewing a saved revision (read-only)

354f67220ae04602a28b0ea62e8d7d67

Fork of Fork of Fork of Fork of Fork of D3: GeoEarth

0 stars1🌍 Public
Bbindhureddy98
Last edited Apr 1, 2022
Created on Apr 1, 2022

This example shows a world map colored by deaths from brain and central nervous system cancer for 2019, using a yellow-orange sequential color scale. It renders geographic features with `d3.geoPath` and `geoNaturalEarth1`, pulling country shapes from world-atlas TopoJSON and matching them to CSV data via country codes. A mouseover tooltip appends the country name and death count, while a legend displays the color scale’s range. The code uses React hooks to load data and D3 v7 for mapping, with the topojson library for feature extraction.

AI-generated description

React Starter code.