Skip to main content
100%

Let's make a map with D3.js!

✓ Published1🌍 Public
SSagar Malviya
Last edited Jun 2, 2019
Created on Jun 2, 2019

This example displays a world map with countries filled in light green and oceans rendered in blue, using the Natural Earth 110m dataset loaded from the `world-atlas` package. It projects geographic coordinates with `d3.geoNaturalEarth1` and draws the sphere and country boundaries via `d3.geoPath`. The code uses the `topojson` library’s `feature` function to convert TopoJSON into GeoJSON features, then appends SVG paths to the canvas. Three.js is not used; all rendering occurs through SVG elements.

AI-generated description
MIT Licensed

Similar vizzes