Vega-Lite US Map Unemployment
A choropleth map of US state unemployment rates colors each state according to its quantitative rate, with a blue hover effect on state borders. The visualization loads US TopoJSON data from Vega’s repository and joins it with a TSV file mapping state IDs to unemployment percentages. It uses Vega-Lite’s `geoshape` mark, `albersUsa` projection, and a lookup transform to merge the datasets. The code leverages the vega-embed library, d3.csv for data loading, and vega-tooltip for interactive inspection, with the map rendered inside an HTML page using Vega-Lite’s API.
AI-generated descriptionThis example of Choropleth of Unemployment Rate comes form Vega-Lite's site. Originally, tt reads a unemployment rate from a tsv data file, which can be found from vega demo data for unemployment rate by state in US in vega docs data on github. But the original example is using counties instead of state. The unemployment tsv file I used actually comes from a different source from here: US States Choropleth.