Repository navigation
Expand file tree
/
Copy pathmapDeathCount.vl.json
More file actions
executable file
·98 lines (97 loc) · 2.62 KB
/
Copy pathmapDeathCount.vl.json
File metadata and controls
executable file
·98 lines (97 loc) · 2.62 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"width": "container",
"height": "container",
"autosize": {
"type": "fit",
"contains": "padding"
},
"layer":[
{
"data":{
"url": "MODZCTA_2010_WGS1984.topo.json",
"format": {"type": "topojson", "feature": "collection"}
},
"mark": {"type": "geoshape", "stroke": "#ffffff","fill":"lightgray"}
},{
"data": {
"url": "MODZCTA_2010_WGS1984.topo.json",
"format": {"type": "topojson",
"feature": "collection"}
},
"transform": [{
"lookup": "properties.MODZCTA",
"from": {
"data": {
"url": "https://raw.githubusercontent.com/nychealth/coronavirus-data/master/data-by-modzcta.csv"
},
"key": "MODIFIED_ZCTA",
"fields": ["MODIFIED_ZCTA","NEIGHBORHOOD_NAME","BOROUGH_GROUP","COVID_CASE_COUNT","COVID_CASE_RATE","PERCENT_POSITIVE","COVID_DEATH_COUNT","COVID_DEATH_RATE","POP_DENOMINATOR"]
}
}],
"selection": {
"highlight": {"type": "single", "empty": "none", "on": "mouseover"}
},
"mark": {
"type": "geoshape",
"stroke": "#FFFFFF"
},
"encoding": {
"color": {
"bin":false,
"field":"COVID_DEATH_COUNT",
"type":"quantitative",
"scale": {"scheme": {"name":"purplered","extent":[0.2,1.25]}},
"legend": {
"title": "Deaths",
"titleFontSize": 10,
"orient":"top-left",
"gradientLength": 100
}
} ,
"strokeWidth":{
"condition": [
{"selection": "highlight", "value": 2}
],
"value": 0.5
},
"tooltip": [
{
"field": "properties.label",
"type": "nominal",
"title": "ZIP Code"
},
{
"field": "NEIGHBORHOOD_NAME",
"type": "nominal",
"title": "Neighborhood"
},
{
"field": "COVID_CASE_COUNT",
"type": "quantitative",
"title": "Case Count"
},
{
"field": "COVID_CASE_RATE",
"type": "quantitative",
"title": "Cases per 100,000"
},
{
"field": "PERCENT_POSITIVE",
"type": "quantitative",
"title": "Percent of people tested who tested positive"
},
{"field": "COVID_DEATH_COUNT",
"type": "quantitative",
"title": "Deaths"
},
{
"field": "COVID_DEATH_RATE",
"type": "quantitative",
"title": "Deaths per 100,000"
}
]
}
}
]
}