Skip to main content
100%

Assignment 2 6B USA map

✓ Published0🌍 Public
Cchsaisriharsha@gmail.com
Last edited Jul 22, 2023
Created on Jul 22, 2023

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 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