Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Swedish map

Public visualization

Viewing a saved revision (read-only)

37b02d51c34244cbacf094f93a641ae6

Fork of Fork of Swedish map

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

This visualization displays the counties of Sweden as solid black regions with white interior boundaries, rendered using SVG paths generated from TopoJSON data. The map uses a Mercator projection from d3-geo, with `geoPath` and `fitExtent` to scale and position the geometry within the frame. Built with React and D3 v5, the code fetches the Swedish county dataset via `d3.json` from a GitHub Gist, then applies `feature` and `mesh` from TopoJSON to extract boundaries and shared borders. The styling, defined in CSS, gives the map a high-contrast monochrome appearance.

AI-generated description