vl({
"data": {"url": "https://vega.github.io/vega-lite/data/cars.json"},
"vconcat": [
{
"selection": {
"brush": {"type": "interval"}
},
"mark": "point",
"encoding": {
"x": {"field": "Horsepower","type": "quantitative"},
"y": {"field": "Miles_per_Gallon","type": "quantitative"}
}
}, {
"transform": [
{"filter": {"selection": "brush"}}
],
"mark": "point",
"encoding": {
"x": {
"field": "Acceleration", "type": "quantitative",
"scale": {"domain": [0,25]}
},
"y": {
"field": "Displacement","type": "quantitative",
"scale": {"domain": [0, 500]}
}
}
}]
})