Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Swedish map

Public visualization

Viewing a saved revision (read-only)

571354982f164333b4d0eb408b85563f

Fork of Swedish map

0 stars5🌍 Public
NNikhilMakkena
Last edited Apr 2, 2022
Created on Apr 2, 2022
Forked from Swedish map

This visualization presents a choropleth-style map of Swedish counties (laen), rendered as black filled polygons with white interior boundaries, using a Mercator projection fitted to the viewport. It loads GeoJSON data from a topojson file via d3.json and converts it using the topojson.feature and topojson.mesh APIs. The React component uses d3.geoPath with projection.fitExtent to scale the map, while SVG paths are generated dynamically in the Marks component. The styling applies distinct fill and stroke colors to distinguish county regions from administrative borders.

AI-generated description