Plot.plot({
projection: ({ width, height }) =>
d3_composite
.geoConicConformalSpain()
.fitSize([width, height], zoom > 0 ? dataForTable : spainPostalMap),
width: width,
height: width * 0.45,
marks: [
Plot.frame({ marginBottom: 16, stroke: "none", fill: "#333332" }),
Plot.raster(fullData, { x: "x", y: "y", fill: "id" }),
Plot.text(numbersOverlay, { x: "x", y: "y", dy: -10, text: "text", fill: "id" }),
Plot.dot(dotOverlay, { x: "x", y: "y", fill: "id", r: postalCode.length / 2 }),
Plot.text(textOverlay, { x: "x", y: "y", dy: -10, text: "name", fill: "id", fontSize: 14 })
]
})