Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment 2 Question 6 Part 2

Public visualization

Viewing a saved revision (read-only)

1a8ffa2c68874f47b9949d04e97fc3a5

Assignment 2 Question 6 Part 2

0 stars0🌍 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.