Skip to main content
100%

Assignment 2 Question 6 Part 1

✓ Published0🌍 Public
MMichael Biancardi
Last edited Jul 21, 2023
Created on Jul 21, 2023

This example displays a world map using a natural Earth projection, with countries rendered as light green polygons outlined in indigo on a sky-blue sphere background. It demonstrates zoom and pan interactions via d3.zoom, applying transform events to the SVG group. The map is generated from TopoJSON data loaded from the world-atlas dataset, with geographic paths computed using d3.geoPath and the d3.geoNaturalEarth1 projection. Hovering over a country changes its 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