Skip to main content
100%

Assignment 2 Question 6 Part 2

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

This example displays a map of the United States using a natural Earth projection fitted to the country’s geometry. It loads world atlas data from a CDN, extracts the U.S. feature via TopoJSON, and renders it as an SVG path with d3.geoPath. The code uses d3.json and d3.geoNaturalEarth1 to project and size the map to 960 by 500 pixels.

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