Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fixed projection for US States

Public visualization

Fixed projection for US States

0 stars0🌍 Public
Bbootshine2
Last edited Oct 17, 2019
Created on Oct 17, 2019

This example displays a choropleth map of US states, with most states colored gray, a subset of states highlighted in orange, and one state (likely Alaska) highlighted in yellow. The map is rendered as SVG using d3.geoPath with no explicit projection, leaving the raw coordinates intact. It loads data from the us-10m.v1.json TopoJSON file and converts it to GeoJSON using topojson.feature. The visualization uses d3.select and d3.json to fetch and bind the data, and d3.set to identify selected state IDs.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed