Skip to main content
Public

Share visualization

Loading preview…

Vega-Lite Choropleths Maps Table Column

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

Vega-Lite Choropleths Maps Table Column

0
Yyuzhang21
Last edited Sep 26, 2019
Created on Sep 18, 2019

This example shows three choropleth maps of U.S. states, each displaying a different quantitative column—population, engineers, and hurricanes—from the same CSV dataset. The maps are generated using Vega-Lite’s repeat operator to iterate over the three fields, with each map using an Albers USA projection and independent color scales. The code loads TopoJSON state boundaries and joins them to the data via a lookup transform, while D3 v5 fetches the CSV locally. Custom axis and label styling in `config.js` improves readability.

AI-generated description

This example of multiple choropleths visual comes form Vega-Lite's site. It demonstrates three fields frome the same table are used to show on 3 different choropleths. The original data is a csv data from vega demo data for population, engineer and hurricans data per state for US which can be found in vega docs data on github.

Comments

Sign in to join the discussion.

MIT Licensed