-
Notifications
You must be signed in to change notification settings - Fork 590
/
concat_hover.vl.json
43 lines (42 loc) · 1.09 KB
/
concat_hover.vl.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"description": "Drag out a rectangular brush to highlight points.",
"data": {"url": "data/cars.json"},
"hconcat": [{
"params": [{
"name": "hover",
"select": {
"type": "single",
"on": "mouseover",
"empty": "none"
}
}],
"mark": "point",
"encoding": {
"x": {"field": "Horsepower", "type": "quantitative"},
"y": {"field": "Miles_per_Gallon", "type": "quantitative"},
"color": {
"condition": {"selection": "hover", "field": "Cylinders", "type": "ordinal"},
"value": "grey"
}
}
},{
"params": [{
"name": "hover",
"select": {
"type": "single",
"on": "mouseover",
"empty": "none"
}
}],
"mark": "point",
"encoding": {
"x": {"field": "Horsepower", "type": "quantitative"},
"y": {"field": "Acceleration", "type": "quantitative"},
"color": {
"condition": {"selection": "hover", "field": "Cylinders", "type": "ordinal"},
"value": "grey"
}
}
}]
}