Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a MAP with D3.js!

Public visualization

Viewing a saved revision (read-only)

3580cd7e912348099b9efbef126db117

Let's make a MAP with D3.js!

0 stars2🌍 Public
Ccledevoute
Last edited Jun 24, 2020
Created on Jun 24, 2020

This example displays a world map rendered as an SVG, with countries filled in light green and the ocean depicted as a sky-blue sphere. It uses D3 v5 and TopoJSON to load world-atlas data at 110m resolution, then applies the `d3.geoNaturalEarth1` projection and `d3.geoPath` to generate country boundaries. The map also draws a background sphere path, and country strokes are semi-transparent black. The code relies on `topojson.feature` to convert TopoJSON topology into GeoJSON features for rendering.

AI-generated description

React Starter code.