🌍 Public
Viewing a saved revision (read-only)
bc9c77df6eb74c49b5ca114d67de6890
Sweden
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