Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a map with D3.js

Public visualization

Let's make a map with D3.js

0 stars1🌍 Public
Xxsg13
Last edited Dec 18, 2020
Created on Dec 18, 2020

This example renders a world map using D3.js and TopoJSON, applying the natural Earth projection via `d3.geoNaturalEarth1` and drawing country boundaries with `d3.geoPath`. The SVG shows a blue sphere outline and light green countries with subtle black strokes. It loads country geometries from the world-atlas 110m TopoJSON dataset and converts them to GeoJSON using TopoJSON’s `feature` function. The code appends paths for the sphere and each country, demonstrating a straightforward choropleth-free geographic visualization.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed