File tree Expand file tree Collapse file tree 1 file changed +69
-0
lines changed Expand file tree Collapse file tree 1 file changed +69
-0
lines changed Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments