Assignment2_Task6_worldmap
✓ Published0🌍 Public
This example renders an interactive world map using D3.js version 5 and the topojson library. It displays countries as white polygons with black outlines on a light blue sphere, using the `geoNaturalEarth1` projection and `geoPath` for shape generation. The map loads geographic data from a JSON file hosted on GitHub, and countries turn red when clicked, as defined by the CSS `:active` pseudo-class.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed