🌍 Public
Viewing a saved revision (read-only)
1f7ba0a4efbe4978935ce390a76b6613
Let's make a map with D3.js!
This example shows a simple world map rendered with D3.js, displaying geographic features as green filled paths with black borders against a blue background. The visualization loads GeoJSON data from a remote GitHub URL using `json()` and applies `geoPath()` from the d3-geo module to generate the SVG path data. With topojson-client’s `feature()` method, the code binds the geographic features to `path` elements in an SVG canvas via `selectAll()`. The map is static, with styling defined in CSS, and serves as a basic introduction to mapping with D3 v5.
AI-generated description