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
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

Comments

Sign in to join the discussion.

MIT Licensed