map = {
let m = eurostatmap
.map("choropleth")
.height(900)
.width(1100)
.title("Gross domestic product (GDP)")
.titleFontSize(20)
.subtitleFontSize(17)
.subtitle("Euro per inhabitant, 2021")
.fontFamily("Source Serif Pro")
.nutsLevel("mixed")
.drawCoastalMargin(false)
.nutsbnStrokeWidth({ 0: 1, 1: 0.4, 2: 0.4, 3: 0.4, oth: 0, co: 0.4 })
.drawGraticule(false)
.frameStrokeWidth(0)
.cntrgFillStyle("#f2f2f2")
.cntbnStroke("red")
.transitionDuration(0)
.classificationMethod("threshold")
.threshold(thresholds)
.colors(colors)
.legend({
x: width - 350,
y: 20,
title: "Euro per inhabitant",
boxOpacity: 1,
barChart: legendAsBarChart,
barChartCounts: addCountLabels
});
m.statData().setData(stats);
m.build();
return m;
}