{
const color = d3.scaleQuantize([1, 10], d3.schemeBuPu[9]) ;
const svg = d3
.create("svg")
.attr("viewBox", [0, 0, width, height])
.style("width", "100%")
.style("height", "auto");
let path = d3.geoPath(laea);
svg
.append("g")
.append("path")
.datum(d3.geoGraticule10())
.attr("class", "graticule")
.attr("d", path)
.style("fill", "none")
.style("stroke", "#4e658a")
.style("stroke-width", 0.8)
.style("stroke-opacity", 0.5)
.style("stroke-dasharray", 2);
svg
.append("path")
.datum(toto)
.attr("fill", "#ebe6e6")
.attr("stroke", "none")
.attr("d", path);
svg
.append("g")
.selectAll("path")
.data(toto.features)
.join("path")
.attr("stroke", "white")
.attr("stroke-width", 0.5)
.attr("fill", d => color(mapping_values.get(d.id)))
.attr("d", path);
return svg.node();
}