Assignment 2 Question 6 Part 1
✓ Published0🌍 Public
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 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