Skip to main content
Public

Share visualization

Loading preview…

Fixed projection for US States

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Fixed projection for US States

0
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