Skip to main content
100%

Swedish map

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

Similar vizzes