Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

DV2_6.2_Regional Map

Public visualization

Viewing a saved revision (read-only)

d23883f58f78423ba0e2b07cf4cae361

DV2_6.2_Regional Map

0 stars0🌍 Public
NNagateja99
Last edited Jul 22, 2023
Created on Jul 22, 2023
Forked from Swedish map

This example displays a choropleth-style regional map of Swedish counties, rendered as an SVG using React and D3 v5. It shows the geographic boundaries of each county filled with a teal color, while interior borders are highlighted with a lighter stroke. The code loads TopoJSON data from a GitHub gist, converts it to GeoJSON using `topojson.feature` and `topojson.mesh`, and projects it with `d3.geoMercator` fitted to the viewport via `projection.fitExtent`. Paths are drawn using the `d3.geoPath` generator.

AI-generated description