driving

U.S. driving distances and gasoline prices

Tracks the relationship between driving habits and gasoline prices in the United States during a period spanning multiple significant events, including the cheap gas era, Arab oil embargo, energy crisis, record low prices, and the "swing backward" from 1956 to 2010.

JSON 55 rows 4 fields 3.5 KB 3 gallery examples 3 examples License not specified

Fields

FieldTypeDistributionSummaryMissing
side

Label positioning indicator used in the original visualization to optimize readability and prevent overlap

Values: left, right, top, bottom

string 4 distinct right 19 · bottom 17 · left 12 Missing 0
year

Year of observation from 1956 to 2010

integer 1,956 – 2,010 · mean 1,983 Missing 0
miles

Miles driven per capita per year, ranging from approximately 4,000 to 10,000 miles

integer 3,675 – 10,070 · mean 7,165 Missing 0
gas

Price of a gallon of regular grade gasoline, adjusted for inflation

number 1.39 – 3.31 · mean 2.17 Missing 0

Profiled across all 55 rows.

Explore

Pick two fields. Scroll to zoom, drag to pan. Click the legend to isolate a side. Both fields have values in 55 of 55 rows.Pick two fields. Tap the legend to isolate a side. Both fields have values in 55 of 55 rows. Vega-Lite · input binding · scale binding · legend bindingVega-Lite · input binding · legend binding
Open This Chart in the Vega Editor

Preview

First 5 of 55 rows5 of 55 rows
sideyearmilesgas
left195636752.38
right195737062.4
bottom195837662.26
top195939052.31
right196039352.27

Examples

Vega and Vega-Lite examples open in the Editor with this dataset loaded. Altair examples link to their Python source.

Provenance

Source
License

Not specified. Check the source's terms before reuse.

File
data/driving.json · 3,461 bytes · View on GitHub