config:
title: Altair Seattle Weather
reloadable: false
sync_with_url: true
sources:
seattle:
type: file
cache_per_query: false
tables:
weather: https://raw.githubusercontent.com/vega/vega/main/docs/data/seattle-weather.csv
kwargs:
parse_dates: [date]
pipelines:
seattle:
source: seattle
table: weather
filters:
- type: widget
field: date
- type: widget
field: weather
layouts:
- title: Seattle Weather
pipeline: seattle
views:
- type: altair
marker: rect
chart:
title: 2012-2015 Daily High Temperature (F) in Seattle, WA
x:
shorthand: date(date):O
title: Day
y:
shorthand: month(date):O
title: Month
encode:
color:
shorthand: max(temp_max):Q
scale:
scheme: inferno
properties:
width: container
- type: altair
x:
shorthand: monthdate(date):T
title: Date
y:
shorthand: temp_max:Q
title: 'Maximum Daily Temperature (C)'
marker: point
encode:
color: weather:N
size:
shorthand: precipitation:Q
scale: [5, 200]
properties:
width: container
- type: altair
x: count()
y: weather:N
encode:
color: weather:N
marker: bar
properties:
width: container
sizing_mode: stretch_width