This repository has been archived by the owner on Mar 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Chargers.json
75 lines (72 loc) · 1.73 KB
/
Chargers.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
"$schema": "https://vega.github.io/schema/vega/v5.json",
"width": 900,
"height": 560,
"padding": {"top": 0, "left": 0, "right": 0, "bottom": 0},
"autosize": "none",
"data": [
{
"name": "germany",
"url": "https://raw.githubusercontent.com/ElectricVehicleChargingCoverage/Visualization/main/data/germany.json",
"format": {"type": "topojson", "feature": "DEU_adm2"},
"transform": [
{
"type": "geopath",
"projection": "projection"
}
]
},
{
"name": "chargers",
"url": "https://raw.githubusercontent.com/ElectricVehicleChargingCoverage/Visualization/main/data/chargers.csv",
"format": {"type": "csv", "parse": "auto"},
"transform": [
{
"type": "geopoint",
"projection": "projection",
"fields": ["lon", "lat"]
}
]
}
],
"projections": [
{
"name": "projection",
"type": "mercator",
"scale": 1200,
"translate": [{"signal": "width / 2"}, {"signal": "height / 2"}]
}
],
"marks": [
{
"type": "path",
"from": {"data": "germany"},
"encode": {
"enter": {
"fill": {"value": "#dedede"},
"stroke": {"value": "white"}
},
"update": {
"path": {"field": "path"}
}
}
},
{
"type": "symbol",
"from": {"data": "chargers"},
"encode": {
"enter": {
"size": {"value": 16},
"fill": {"value": "steelblue"},
"fillOpacity": {"value": 0.8},
"stroke": {"value": "white"},
"strokeWidth": {"value": 1.5}
},
"update": {
"x": {"field": "x"},
"y": {"field": "y"}
}
}
}
]
}