Skip to main content
100%

World map

✓ Published0🌍 Public
Nnikhilagopi
Last edited Apr 11, 2023
Created on Apr 11, 2023
Forked from World map Saranya

This example displays a world map rendered as yellow countries on a gray sphere using an equirectangular projection. The code loads geographic data from a TopoJSON file, converts it to GeoJSON with `topojson.feature`, and draws the paths with `d3.geoPath`. Country shapes change color to blue on hover, and the visualization loads D3 and TopoJSON from UNPKG, demonstrating ES6 module imports within VizHub.

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