render({
vconcat: [
{
title: {
text: 'Maximum Temperatures in Seattle from 2012 to 2015',
subtitle: 'Select a Point to see the value | Double click to clear'
},
data: {
values: seattleWeatherTyped
},
mark: 'point',
params: [{
name: 'selected_range',
select: {
type: 'interval'
}
}],
encoding: {
x: {
field: 'date',
type: 'temporal',
title: 'Date',
scale: {
domain: ['2012-01-01', '2016-01-01']
}
},
y: {
field: 'temp_max',
type: 'quantitative',
title: 'Max Temperature',
scale: {
domain: [-5, 40]
}
},
color: {
field: 'weather',
type: 'nominal',
title: 'Type of Weather'
}
}
},
{
title: {
text: 'Maximum Temperatures in Seattle from 2012 to 2015',
subtitle: 'Select a Point to see the value | Double click to clear'
},
data: {
values: seattleWeatherTyped
},
mark: 'point',
params: [{
name: 'selected_range',
select: {
type: 'interval'
}
}],
encoding: {
x: {
field: 'date',
type: 'temporal',
title: 'Date',
scale: {
domain: ['2012-01-01', '2016-01-01']
}
},
y: {
field: 'temp_max',
type: 'quantitative',
title: 'Max Temperature',
scale: {
domain: [-5, 40]
}
},
color: {
field: 'weather',
type: 'nominal',
title: 'Type of Weather'
}
}
}
]
})