Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Swedish map

Public visualization

Viewing a saved revision (read-only)

0807d264edd54951887caaea69addbd2

Swedish map

0 stars0🌍 Public
RRakshithaRao27
Last edited Apr 3, 2022
Created on Apr 3, 2022

This visualization displays the counties of Sweden using a geographic map rendered with SVG. The map fills the entire viewport via a Mercator projection fit to the data extent, with each county filled red and internal boundaries highlighted in purple. The implementation uses d3-geo’s `geoMercator`, `geoPath`, and `fitExtent` to project GeoJSON features derived from a TopoJSON source via topojson’s `feature` and `mesh` functions. React manages the component state and renders the paths, while data is loaded asynchronously with `d3.json`.

AI-generated description