Skip to main content
100%

Let's make a map with D3.js!

✓ Published1🌍 Public
Cchaimmaeee
Last edited Nov 26, 2020
Created on Nov 26, 2020

This example generates an orthographic map of world features from a JSON dataset, rendering each geographic feature as a green SVG path with black stroke outlines. The code uses D3.js version 5’s `geoPath` and `geoOrthographic` projections, along with the topojson library’s `feature` function to convert the remote GeoJSON data into drawable paths. The map is displayed in a 900-by-500 pixel SVG element, with the projection offering a globe-like perspective.

AI-generated description
MIT Licensed

Similar vizzes