Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Sweden

Public visualization

Viewing a saved revision (read-only)

bc9c77df6eb74c49b5ca114d67de6890

Sweden

0 stars0🌍 Public
HHaris Vidimlic
Last edited Feb 16, 2022
Created on Feb 15, 2022

This example displays a choropleth of Sweden’s counties, rendered as a static SVG map without interactivity. Using React and D3 v5, it loads TopoJSON county boundaries via `d3.json` and converts them with `topojson.feature`. A Mercator projection (`d3.geoMercator`) and `d3.geoPath` draw the filled paths, with a fixed zoom scale and map dimensions. The code’s styling applies a teal fill and transparent stroke to each county.

AI-generated description