Vega Datasets

Explore the data behind 352 examples from the Vega, Vega-Lite and Altair galleries.

75 datasets · Documented fields, sources and licenses

Release 3.2.1 · Data Package v2 · BSD-3-Clause code

Datasets

Most used first
Format

Gallery examples across all three libraries

100 B1 KB10 KB100 KB1 MB10 MBFile size (log scale)01020304050Gallery examples(square root scale)
100 B1 KB10 KB100 KB1 MB10 MBFile size (log scale)01020304050Gallery examples(square root scale)
100 B1 KB10 KB100 KB1 MB10 MBFile size (log scale)01020304050Gallery examples(square root scale)
100 B1 KB10 KB100 KB1 MB10 MBFile size (log scale)01020304050Gallery examples(square root scale)
Drag to filter datasets. Click a point to open it.Tap a point to open its dataset.
carsJSON

Car specifications and fuel economy

406 rows 9 fields 100 KB
(Vega-Lite 27, Vega 7, Altair 19)53 examples
moviesJSON

Movie box office, budgets and ratings

3,201 rows 16 fields 1.4 MB
(Vega-Lite 24, Vega 7, Altair 16)47 examples
stocksCSV

Monthly stock prices for five companies

560 rows 3 fields 12 KB
(Vega-Lite 20, Vega 1, Altair 15)36 examples
barleyJSON

Minnesota barley yields by variety and trial site

120 rows 4 fields 8.5 KB
(Vega-Lite 7, Vega 2, Altair 19)28 examples
seattle_weatherCSV

Seattle daily weather from 2012–2015

1,461 rows 6 fields 48 KB
(Vega-Lite 12, Altair 10)22 examples
us_10mTopoJSON

U.S. land, state and county boundaries at 1:10 million scale

Geographic 642 KB
(Vega-Lite 9, Vega 4, Altair 8)21 examples
penguinsJSON

Palmer Archipelago penguin measurements

344 rows 7 fields 67 KB
(Vega-Lite 6, Vega 3, Altair 8)17 examples
populationJSON

U.S. population by age, sex and census year

570 rows 4 fields 28 KB
(Vega-Lite 8, Vega 1, Altair 5)14 examples
world_110mTopoJSON

World land and country boundaries at 1:110 million scale

Geographic 119 KB
(Vega-Lite 2, Vega 7, Altair 4)13 examples
wheatJSON

Playfair's wheat prices and wages from 1565–1820

52 rows 3 fields 2.1 KB
(Vega-Lite 1, Vega 1, Altair 10)12 examples
unemployment_across_industriesJSON

U.S. unemployment by industry over time

1,708 rows 6 fields 186 KB
(Vega-Lite 6, Altair 3)9 examples
airportsCSV

Airport locations and identifiers

3,376 rows 7 fields 210 KB
(Vega-Lite 4, Vega 1, Altair 3)8 examples
normal_2dJSON

Simulated points from a bivariate normal distribution

500 rows 2 fields 34 KB
(Vega-Lite 1, Vega 6, Altair 1)8 examples
flareJSON

Flare package and class hierarchy

252 rows 2 fields 21 KB
(Vega 7)7 examples
iowa_electricityCSV

Iowa annual electricity generation by source

51 rows 3 fields 1.5 KB
(Altair 5)5 examples
earthquakesGeoJSON

USGS seismic events from January–February 2018

Geographic 1.2 MB
(Vega-Lite 1, Vega 2, Altair 1)4 examples
flights_airportCSV

U.S. flight counts by airport route

5,366 rows 3 fields 66 KB
(Vega-Lite 2, Vega 1, Altair 1)4 examples
miserablesJSON

Les Misérables character coappearance network

12 KB
(Vega 4)4 examples
unemploymentTSV

U.S. county unemployment rates

3,218 rows 2 fields 35 KB
(Vega-Lite 1, Vega 2, Altair 1)4 examples
disastersCSV

Deaths from natural disasters by type and year

803 rows 3 fields 19 KB
(Vega-Lite 1, Altair 2)3 examples
drivingJSON

U.S. driving distances and gasoline prices

55 rows 4 fields 3.5 KB
(Vega-Lite 1, Vega 1, Altair 1)3 examples
flights_2kJSON

U.S. flight delays and routes (2,000 flights)

2,000 rows 5 fields 178 KB
(Vega-Lite 2, Altair 1)3 examples
gapminderJSON

Gapminder population, life expectancy and fertility

682 rows 6 fields 75 KB
(Vega-Lite 1, Vega 1, Altair 1)3 examples
monarchsJSON

English and British rulers for Wheat and Wages

12 rows 4 fields 683 B
(Vega-Lite 1, Vega 1, Altair 1)3 examples
seattle_weather_hourly_normalsCSV

Seattle hourly climate normals for 1981–2010

8,759 rows 4 fields 311 KB
(Vega-Lite 1, Vega 2)3 examples
sp500CSV

S&P 500 monthly closing values

123 rows 2 fields 2.3 KB
(Vega-Lite 1, Vega 1, Altair 1)3 examples
windvectorsCSV

Simulated wind vectors over northwestern Europe

4,800 rows 5 fields 129 KB
(Vega-Lite 1, Vega 1, Altair 1)3 examples
anscombeJSON

Anscombe’s quartet: similar statistics, different patterns

44 rows 3 fields 1.7 KB
(Vega-Lite 1, Altair 1)2 examples
co2_concentrationCSV

Monthly atmospheric CO2 at Mauna Loa

741 rows 3 fields 19 KB
(Vega-Lite 1, Altair 1)2 examples
countriesJSON

Country life expectancy and fertility over time

620 rows 7 fields 99 KB
(Vega-Lite 1, Altair 1)2 examples
flights_5kJSON

U.S. flight delays and routes (5,000 flights)

5,000 rows 5 fields 446 KB
(Vega-Lite 1, Altair 1)2 examples
gapminder_health_incomeCSV

Gapminder income, life expectancy and population

187 rows 5 fields 8.6 KB
(Vega-Lite 1, Altair 1)2 examples
githubCSV

Simulated hourly GitHub commit counts

955 rows 2 fields 21 KB
(Vega-Lite 1, Altair 1)2 examples
incomeJSON

U.S. household income distributions by state and territory

520 rows 6 fields 73 KB
(Vega-Lite 1, Altair 1)2 examples
jobsJSON

U.S. occupation counts by sex and census year

7,650 rows 5 fields 937 KB
(Vega 1, Altair 1)2 examples
london_boroughsTopoJSON

London borough boundaries including the City of London

Geographic 15 KB
(Vega-Lite 1, Altair 1)2 examples
london_centroidsJSON

London borough centroids including the City of London

33 rows 3 fields 2.3 KB
(Vega-Lite 1, Altair 1)2 examples
london_tube_linesTopoJSON

London Underground and DLR line segments

Geographic 80 KB
(Vega-Lite 1, Altair 1)2 examples
ohlcJSON

VIX daily open, high, low and close values

44 rows 7 fields 5.7 KB
(Vega-Lite 1, Altair 1)2 examples
population_engineers_hurricanesCSV

U.S. population, engineering employment and hurricane landfalls

52 rows 5 fields 1.9 KB
(Vega-Lite 1, Altair 1)2 examples
speciesCSV

Year-round habitat coverage for four species by U.S. county

12,360 rows 6 fields 1.0 MB
(Vega-Lite 1, Altair 1)2 examples
us_employmentCSV

U.S. monthly employment totals by sector

120 rows 24 fields 18 KB
(Altair 2)2 examples
us_state_capitalsJSON

U.S. state capitals and capitol building locations

50 rows 4 fields 4.0 KB
(Vega-Lite 1, Altair 1)2 examples
weatherCSV

Seattle and New York daily weather from 2012–2015

2,922 rows 7 fields 121 KB
(Vega-Lite 2)2 examples
weekly_weatherJSON

Example temperatures with normals, records and forecasts

1.3 KB
(Vega-Lite 1, Vega 1)2 examples
zipcodesCSV

ZIP code locations and place names

42,049 rows 6 fields 2.0 MB
(Vega-Lite 1, Altair 1)2 examples
annual_precipJSON

Global annual precipitation grid

266 KB
(Vega 1)1 example
budgetsJSON

U.S. federal budget balances and forecasts

230 rows 3 fields 18 KB
(Vega 1)1 example
ffoxPNG

Firefox application icon

18 KB
(Vega-Lite 1)1 example
flare_dependenciesJSON

Flare class dependency network

764 rows 2 fields 35 KB
(Vega 1)1 example
flights_200k_jsonJSON

U.S. flight delays (200,000 flights, JSON)

200,000 rows 3 fields 9.9 MB
(Vega 1)1 example
flights_20kJSON

U.S. flight delays and routes (20,000 flights)

20,000 rows 5 fields 1.8 MB
(Vega 1)1 example
gimpPNG

GIMP application icon

8.2 KB
(Vega-Lite 1)1 example
global_tempCSV

Global land and ocean temperature anomalies

144 rows 2 fields 1.7 KB
(Vega 1)1 example
icon_7zipPNG

7-Zip application icon

4.0 KB
(Vega-Lite 1)1 example
lookup_groupsCSV

Synthetic group memberships for lookup examples

9 rows 2 fields 77 B
(Vega-Lite 1)1 example
lookup_peopleCSV

Synthetic people with ages and heights

9 rows 3 fields 125 B
(Vega-Lite 1)1 example
obesityJSON

U.S. state obesity rates

50 rows 3 fields 2.2 KB
(Vega 1)1 example
platformer_terrainJSON

Platformer terrain pixels from Celeste assets

7,514 rows 8 fields 1.4 MB
(Vega 1)1 example
sp500_2000CSV

S&P 500 daily index values and volume

5,105 rows 7 fields 416 KB
(Vega 1)1 example
udistrictJSON

Restaurant and cafe latitudes in Seattle's University District

182 rows 2 fields 6.5 KB
(Vega 1)1 example
uniform_2dJSON

Simulated points from a bivariate uniform distribution

500 rows 2 fields 34 KB
(Vega 1)1 example
volcanoJSON

Mount Eden volcano elevation grid

21 KB
(Vega 1)1 example
bird_migrationCSV

Daily bird migration population centers

3,229 rows 5 fields 166 KB
0 examples
birdstrikesCSV

FAA aircraft wildlife strike reports

10,000 rows 14 fields 1.2 MB
0 examples
budgetJSON

U.S. federal receipts and estimates by account

237 rows 72 fields 391 KB
0 examples
burtinJSON

Burtin's antibiotic susceptibility measurements

16 rows 6 fields 2.7 KB
0 examples
crimeaJSON

British Army deaths by cause in the Crimean War

24 rows 5 fields 2.2 KB
0 examples
flights_10kJSON

U.S. flight delays and routes (10,000 flights)

10,000 rows 5 fields 892 KB
0 examples
flights_200k_arrowArrow

U.S. flight delays (200,000 flights, Arrow)

200,000 rows 3 fields 1.6 MB
0 examples
flights_3mParquet

U.S. flight delays and routes (3 million flights)

3,000,000 rows 5 fields 13 MB
0 examples
footballJSON

European football match results from five leagues

6,508 rows 6 fields 1.2 MB
0 examples
gallery_examplesJSON

Vega, Vega-Lite and Altair gallery example index

471 rows 7 fields 260 KB
0 examples
la_riotsCSV

Los Angeles Times death records for the 1992 unrest

63 rows 11 fields 7.4 KB
0 examples
political_contributionsJSON

U.S. candidate campaign finance summaries

58 rows 25 fields 50 KB
0 examples

Use the Data

Quickstart with cars

Copy a data URL or a snippet for your tool to get started with the cars dataset.

Explore the cars dataset
https://cdn.jsdelivr.net/npm/vega-datasets@3/data/cars.json

The @3 URL tracks 3.x releases, so it gets fixes without breaking changes. To lock a version, use @3.2.1. Versioning

Load by URL

Every file has a CDN URL. Publish with the versioned jsDelivr link.

URL Patterns

Import in JavaScript

npm install vega-datasets
ESM Example

Reference in a Spec

"data": {"url": ".../cars.json"}
Vega-Lite Example

Load in Python

from altair.datasets import data
Julia and Observable

About the Collection

LicensingEach dataset keeps its source's license
Code is BSD-3-Clause. Each dataset keeps its source's license, recorded in its metadata and shown on its page. Check the source's terms before reuse.
MetadataData Package v2: schema, sources, licenses

Each dataset comes with:

  • Detailed Metadata: Source, structure, and licensing information, following Data Package Standard v2 for enhanced interoperability.
  • Generation Scripts: Automation tools that facilitate data processing and updates, ensuring consistency and reproducibility.

Further information is available in datapackage.md (human-readable) and datapackage.json (machine-readable).

VersioningSemantic versioning, applied to data

Vega Datasets follows semantic versioning with additional data-specific guidelines:

  • Patch Releases: Minor formatting or documentation updates without changes to the data.
  • Minor Releases: Data content updates that maintain existing file and field names, including new datasets.
  • Major Releases: Potential changes to file names or removal of datasets that may break backward compatibility.
Intended UseTeaching and demos. Some flaws are deliberate.
  • The datasets are designed for instructional and demonstration purposes.
  • Some datasets include intentional inconsistencies to offer opportunities for data cleaning exercises.