Skip to main content
100%

Activity 8 Map

✓ Published0🌍 Public
VVenkat-Sumith-Thota
Last edited Jul 9, 2023
Created on Jul 9, 2023
Forked from Hello VizHub

This example displays a zoomable world map using an equirectangular projection, with countries rendered as interactive SVG paths that change color on hover. It loads geographic data from the world-atlas TopoJSON file, converting it to GeoJSON with the `feature` method from the `topojson` library. The visualization applies a blue sphere background and green country fill, using D3 v5's `geoPath`, `geoEquirectangular`, and `zoom` APIs to enable panning and scaling of the map.

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