Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Swedish map

Public visualization

Viewing a saved revision (read-only)

357295f1f0bd4225bfc806598f7e1075

Swedish map

0 stars0🌍 Public
AAshrith Kudidhi
Last edited Jul 10, 2022
Created on Jul 10, 2022
Forked from Hello VizHub

This example displays a choropleth map of Swedish counties using SVG paths generated from TopoJSON data. The visualization loads geojson features from a UK counties dataset and renders them with D3’s geoMercator projection and geoPath. Built with React, the map uses a custom `useData` hook to fetch and transform the topology, while the `Map` component iterates over features to draw each region. The code demonstrates ES6 module imports, D3 integration via UNPKG, and React state management for asynchronous data loading.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.