Skip to main content
100%

Assignment2_Task6_worldmap

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

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 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