Skip to content

Commit 9e625a9

Browse files
author
Danyel Fisher
committed
restored crossfilter example
1 parent b516f5c commit 9e625a9

File tree

1 file changed

+69
-0
lines changed

1 file changed

+69
-0
lines changed

spec/6_10_crossfilter.vl.json

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
{
2+
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
3+
"config":{"background":"#ffffff"},
4+
"data": {"url": "data/europe_world_bank.csv"},
5+
"hconcat": [
6+
{
7+
"repeat": {
8+
"column": ["Population_ages_15_64_of_total", "Population_ages_65_and_above_of_total"]
9+
},
10+
"spec": {
11+
"mark": "bar",
12+
"height": 700,
13+
"selection": {
14+
"brush": {
15+
"type": "interval",
16+
"encodings": ["y"],
17+
"resolve": "intersect"
18+
}
19+
},
20+
"encoding": {
21+
"y": {
22+
"field": "Country",
23+
"type": "ordinal",
24+
"sort": {
25+
"op": "min",
26+
"field": { "repeat":"column"},
27+
"order": "descending"
28+
}
29+
},
30+
"x": {
31+
"field": { "repeat": "column"},
32+
"type": "quantitative"
33+
},
34+
"color": {
35+
"condition": {"selection": {"not": "brush"}, "value": "steelblue"},
36+
"value": "goldenrod"
37+
}
38+
}
39+
}
40+
},
41+
{
42+
"mark": "point",
43+
"width": 260,
44+
"height": 260,
45+
"selection": {
46+
"brush": {
47+
"type": "interval",
48+
"resolve": "intersect"
49+
}
50+
},
51+
"encoding": {
52+
"y": {
53+
"field": "Population_ages_15_64_of_total",
54+
"type": "quantitative",
55+
"scale": {"zero": false}
56+
},
57+
"x": {
58+
"field": "Population_ages_65_and_above_of_total",
59+
"type": "quantitative",
60+
"scale": {"zero": false}
61+
},
62+
"color": {
63+
"condition": {"selection": {"not": "brush"}, "value": "steelblue"},
64+
"value": "goldenrod"
65+
}
66+
}
67+
}
68+
]
69+
}

0 commit comments

Comments
 (0)