Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Untitled

Public visualization

Viewing a saved revision (read-only)

3fcef9e447a94ebab90252a379e6fdc2

Untitled

0 stars0🌍 Public
RRobFaj
Last edited Apr 13, 2023
Created on Apr 13, 2023
Forked from D3 Starter

This visualization displays a single country, Germany, extracted from a world GeoJSON dataset and rendered in red on a blank SVG canvas. The map uses the Mercator projection, specifically centered on GPS coordinates [2, 47] with a scale factor of 980, via the `d3.geoMercator` projection. The code loads world boundaries from a remote GitHub repository using `d3.json`, filters the features to only include Germany, and draws the path with `d3.geoPath` and the `.projection()` method. The result is a simple, static choropleth-style map focusing solely on that nation.

AI-generated description

A demonstration of how to start using D3 version 6.