hvega-0.5.0.0: tests/specs/conditional/selectionCondition3.vl
{
"data": {
"url": "https://vega.github.io/vega-lite/data/cars.json"
},
"vconcat": [
{
"mark": "point",
"selection": {
"brush": {
"type": "interval"
}
},
"encoding": {
"x": {
"field": "Horsepower",
"type": "quantitative"
},
"y": {
"field": "Miles_per_Gallon",
"type": "quantitative"
}
}
},
{
"transform": [
{
"filter": {
"and": [
{
"selection": "brush"
},
"datum.Weight_in_lbs > 3000"
]
}
}
],
"mark": "point",
"encoding": {
"x": {
"field": "Acceleration",
"scale": {
"domain": [
0,
25
]
},
"type": "quantitative"
},
"y": {
"field": "Displacement",
"scale": {
"domain": [
0,
500
]
},
"type": "quantitative"
}
}
}
],
"$schema": "https://vega.github.io/schema/vega-lite/v4.json"
}