Skip to main content
100%

Activity 8 Map

✓ Published0🌍 Public
Aanith462@gmail.com
Last edited Jul 19, 2023
Created on Jul 19, 2023
Forked from Hello VizHub

This example presents an interactive world map using a sphere outline and country boundaries. The map is rendered in SVG using D3 v5 with a `geoEquirectangular` projection and `geoPath` to draw geographic features. Country data comes from the `world-atlas` TopoJSON file, converted to GeoJSON with the `feature` method. Users can pan and zoom the map via D3's `zoom` behavior, while hovering over countries changes their fill color to maroon.

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