Assignment 2 6B USA map
✓ Published0🌍 Public
This example renders a choropleth-style map of the United States using an Albers USA projection. The visualization displays each state as a red path with blue strokes, generated from GeoJSON data loaded via `d3.json`. The code uses `d3.geoAlbersUsa` for the projection and `d3.geoPath` to convert geographic coordinates into SVG path data. The map is drawn at a fixed 700×700 pixel size, with all states filled uniformly red rather than encoding a quantitative variable.
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