Skip to main content
100%

Fork of Fork of Let's make a map with D3.js!

✓ Published0🌍 Public
JJiachen Xu
Last edited Dec 20, 2021
Created on Dec 20, 2021

This example demonstrates how to load and prepare world map data using D3.js v5. It fetches TopoJSON data from the world-atlas package with `d3.json`, then logs the parsed dataset to the console, preparing it for future geographic visualization with `d3.geoPath`. The code sets up an SVG canvas with fixed dimensions and applies basic styling to hide page overflow. The visualization currently focuses on data acquisition and debugging, showing the structure of the world map geometry before any rendering occurs.

AI-generated description

Demonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.

MIT Licensed

Similar vizzes