Skip to main content
100%

Fork of Swedish map

✓ Published5🌍 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
MIT Licensed

Similar vizzes