Plot.plot({
height: 800,
width: 800,
fx: { padding: 0.1, tickPadding: 0, ticks: [] },
fy: { padding: 0.15, tickPadding: 0, ticks: [] },
facet: {
data: views,
x: (_d, i) => i % noColumns,
y: (_d, i) => Math.floor(i / noColumns)
},
projection: {
type: "identity",
inset: 32,
domain: views[0].projection(continentsDisputedAreasTopo[0])
},
marks: [
Plot.frame({
fill: "steelblue",
fillOpacity: 0.1,
stroke: "#222"
}),
Plot.text(views, {
text: "name",
frameAnchor: "top",
dy: -20,
label: null,
fontSize: 16
}),
Plot.geo(views, {
geometry: (d) => d.projection(worldTopo),
fill: "#fff",
stroke: "#222",
strokeWidth: 0.5
}),
Plot.geo(views, {
geometry: (d) => d.projection(d.disputed),
stroke: "red",
fill: "red",
strokeWidth: 5,
strokeOpacity: 0.7,
fillOpacity: 1
}),
Plot.geo(views, {
geometry: (d) => d.projection(d.disputed),
stroke: "red",
fill: "red",
strokeWidth: 2,
strokeOpacity: 0.4,
fillOpacity: 1
})
]
})