Repository navigation
Expand file tree
/
Copy pathmapDeathCountCircle.vl.json
More file actions
executable file
·102 lines (101 loc) · 2.75 KB
/
Copy pathmapDeathCountCircle.vl.json
File metadata and controls
executable file
·102 lines (101 loc) · 2.75 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
99
100
101
102
{
"$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": "zcta_points.csv"
},
"transform": [
{
"lookup": "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_DEATH_COUNT",
"COVID_CASE_RATE",
"COVID_DEATH_RATE",
"PERCENT_POSITIVE",
"POP_DENOMINATOR"
]
},
"default": "no data"
}
],
"selection": {
"highlight": {"type": "single", "empty": "none", "on": "mouseover"}
},
"mark": {"type": "circle", "stroke": "#8A2BE2","fill":"red","fillOpacity": 0.5},
"encoding": {
"latitude":{"field":"lat","type": "quantitative"},
"longitude":{"field":"lon","type": "quantitative"},
"size": {
"bin": false,
"field": "COVID_DEATH_COUNT",
"type": "quantitative",
"scale": {"range": [0, 400]},
"legend": {
"title": "Death Count",
"titleFontSize": 10,
"orient": "top-left",
"symbolLimit": 5,
"symbolOpacity": 0.5,
"values":[10,50,100]
}
},
"strokeWidth": {
"condition": [{"selection": "highlight", "value": 2}],
"value": 0.5
},
"tooltip": [
{
"field": "MODIFIED_ZCTA",
"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"
}
]
}
}]
}