-
Notifications
You must be signed in to change notification settings - Fork 0
/
labor_bar_2020.vl.json
51 lines (50 loc) · 1.69 KB
/
labor_bar_2020.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
44
45
46
47
48
49
50
51
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"title": "2020",
"data": { "values": [
{"Age": "16-19","Gender": "Male","Rate":34.1},
{"Age": "20-24","Gender": "Male","Rate":71.0},
{"Age": "25-34","Gender": "Male","Rate":87.1},
{"Age": "35-44","Gender": "Male","Rate":89.7},
{"Age": "45-54","Gender": "Male","Rate":86.8},
{"Age": "55-64","Gender": "Male","Rate":70.7},
{"Age": "65-74","Gender": "Male","Rate":31.5},
{"Age": "74- ","Gender": "Male","Rate":11.8},
{"Age": "16-19","Gender": "Female","Rate":34.9},
{"Age": "20-24","Gender": "Female","Rate":67.5},
{"Age": "25-34","Gender": "Female","Rate":75.7},
{"Age": "35-44","Gender": "Female","Rate":75.0},
{"Age": "45-54","Gender": "Female","Rate":74.7},
{"Age": "55-64","Gender": "Female","Rate":59.1},
{"Age": "65-74","Gender": "Female","Rate":22.4},
{"Age": "74- ","Gender": "Female","Rate":6.8}
]
},
"width": {"step": 12},
"mark": "bar",
"encoding": {
"column": {
"field": "Age", "type": "ordinal", "spacing": 10,
"header": {"orient": "bottom"}
},
"y": {
"field": "Rate",
"type": "quantitative",
"title": "Labor Participation Rate",
"axis": {"grid": true}
},
"x": {
"field": "Gender",
"type": "ordinal",
"axis": null
},
"color": {
"field": "Gender",
"scale": {"range": ["#675193", "#ca8861"]}
}
},
"config": {
"view": {"stroke": "transparent"},
"axis": {"domainWidth": 1}
}
}