/
chartArea2.json
53 lines (41 loc) · 1.38 KB
/
chartArea2.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
52
53
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.16.3.json",
"description": "Number of households in temporary accommodation. Quarterly data from 1998 Q1 until 2023 Q3.",
"height": 250,
"width": 300,
"view": {"stroke": "transparent"},
"data": {
"url": "https://raw.githubusercontent.com/jhellingsdata/RADataHub/main/Article%20Charts/data/UK_DLUHC_tempHousing.csv"},
"selection": {
"region": {"type": "multi", "fields": ["Type"], "bind": "legend"}
},
"mark": {"type": "area"},
"encoding": {
"color": {
"field": "Type",
"type": "nominal",
"scale": {"scheme": "magma"},
"legend": {
"title": "Type of Temporary Accommodation",
"orient": "bottom",
"columns": 1,
"labelLimit": 0,
"titleLimit": 0,
"labelFontSize": 10}},
"x": {
"field": "Date", "type": "temporal",
"axis": {"grid": false, "title": null}},
"y": {
"field": "Households",
"type": "quantitative",
"axis": {
"gridDash": [1, 5],
"titleAngle": 0,
"titleAlign": "left",
"titleFontStyle": "italic",
"titleY": -10
}
},
"opacity": {"condition": {"selection": "region", "value": 1}, "value": 0.1}
}
}