Skip to main content
100%

Assignment2_Task6

✓ Published0🌍 Public
Rrikhitakoganti12
Last edited Jul 22, 2023
Created on Jul 17, 2023

This visualization displays an interactive world map using a spherical representation with geographic country boundaries. The map is rendered as SVG with an equirectangular projection, allowing users to zoom the entire globe. Countries are colored pale green with black borders and turn white when hovered. The code uses `d3.geoPath` and `d3.geoEquirectangular` for map rendering, `d3.zoom` for pan-and-zoom interactions, and the `topojson` `feature` method to convert TopoJSON data from the world-atlas dataset into GeoJSON for drawing country paths.

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