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)

17697fc031bc4c32b6db05fd57e73a4b

Let's Make a Map with D3.js!

0 stars0🌍 Public
JJordan Arnold
Last edited Mar 10, 2021
Created on Mar 10, 2021

This example demonstrates the initial steps for creating a world map using D3.js, fetching geographic data asynchronously. The code sets up an SVG canvas and loads a TopoJSON dataset from the World Atlas package via `d3.json`. It reads the SVG dimensions using `svg.attr` and logs the parsed data to the console, showing how to retrieve and inspect map geometry before rendering it with a projection or `d3.geoPath`.

AI-generated description