Skip to main content
100%

World map

✓ Published0🌍 Public
Kkbrookshire420
Last edited May 13, 2022
Created on May 11, 2022
Forked from Line Chart Example

This example displays a world map using a natural Earth projection, rendering land masses, graticules, country borders, and the sphere outline as SVG paths. The visualization loads geographic data from the World Atlas TopoJSON using `d3.json` and converts it with TopoJSON’s `feature` and `mesh` utilities. React manages the fetched data through a custom `useData` hook, while the `Marks` component applies `geoNaturalEarth1`, `geoPath`, and `geoGraticule` from D3 to generate the map geometry. Styling via CSS distinguishes the land, sphere, interiors, and graticule layers.

AI-generated description

A program that loads in some data using d3 utilities, and uses react state to keep track of the data.

MIT Licensed

Similar vizzes