{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"width": 500,
"height": 300,
"projection": {"type": "mercator"},
"layer": [
{
"data": {
"url": "https://raw.githubusercontent.com/mattijn/datasets/master/pc4_2019_wgs84.json",
"format": {"type": "topojson", "feature": "pc4_2019_wgs84"}
},
"transform": [
{
"lookup": "properties.pc4",
"from": {
"data": {
"url": "https://raw.githubusercontent.com/mattijn/datasets/master/pc4_occ.csv",
"format": {"parse": {"occurences": "number"}}
},
"key": "pc4",
"fields": ["occurences"]
}
}
],
"mark": {"type": "geoshape", "tooltip": {"content": "data"}},
"encoding": {"color": {"field": "occurences", "type": "quantitative"}}
},
{
"data": {
"url": "https://raw.githubusercontent.com/mattijn/datasets/master/gemeente_2019_wgs84.json",
"format": {"type": "topojson", "mesh": "pc4_2019_wgs84"}
},
"mark": {"type": "geoshape", "filled": false, "strokeWidth": 1.5, "stroke":"black"}
}
]
}