Skip to main content
100%

Let's make a map with D3.js!

✓ Published1🌍 Public
MMounikaBeerelly
Last edited Jun 9, 2020
Created on Jun 9, 2020

This example shows a world map rendered as SVG paths, with countries filled in light green and the ocean as a blue sphere. It uses the D3.js v5 library along with TopoJSON to load and parse geographic data from the world-atlas package. The code applies a natural Earth projection via `d3.geoNaturalEarth1` and a `d3.geoPath` generator to draw both the sphere outline and country borders. A static 1000x500 SVG canvas displays the result.

AI-generated description
MIT Licensed

Similar vizzes