Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Simple World Map - PKS

Public visualization

Viewing a saved revision (read-only)

49ef8f90764a4bc487b9f174b2cb9e38

Fork of Simple World Map - PKS

0 stars0🌍 Public
PPrajanya Shrestha
Last edited Jul 9, 2024
Created on Jul 9, 2024
Forked from Simple World Map

This example renders a world map using the Natural Earth projection via `d3.geoNaturalEarth1` and `d3.geoPath`. A graticule grid and outline are drawn with `geoGraticule`, while country boundaries are filled and stroked in white. The map loads TopoJSON country data from the `visionscarto-world-atlas` package, converts it with `topojson-client`, and displays it within a full-screen SVG. The code uses `d3.select` for rendering and updates the map through a state-based flow that fetches data once.

AI-generated description
MIT Licensed