CrimeMap3 = vegaLite({
vconcat: [
{
width: 600,
height: 400,
layer: [
{
data: {
values: dataFile,
format: {
type: "topojson",
feature: "DataFileEUR for GEOO copy"
}
},
projection: {
type: "mercator"
},
mark: "geoshape",
encoding: {
fill: {
field: "properties.succ",
type: "quantitative",
title: "Successes"
},
stroke: { value: "black" },
tooltip: [
{ field: "properties.country", title: "Country" },
{ field: "properties.succ", title: "Country Successes" }
]
}
},
{
data: {
values: dataFile
},
mark: {
type: "point",
filled: true,
size: 50
},
encoding: {
longitude: { field: "longitude", type: "quantitative" },
latitude: { field: "latitude", type: "quantitative" },
color: { field: "crime_type", type: "nominal" },
size: { field: "severity", type: "quantitative" },
tooltip: [
{ field: "crime_type", title: "Crime Type" },
{ field: "severity", title: "Severity" }
]
}
}
]
}
]
})