chart = {
const pixelScale = 1.5;
const svg = d3.create("svg")
.attr("width", pixelScale * shape.x)
.attr("height", pixelScale * shape.y);
svg.append("g")
.attr("fill", "none")
.attr("stroke", "#fff")
.attr("stroke-opacity", "0.5")
.selectAll("path")
.data(scaleContour(contours, pixelScale))
.join("path")
.attr("fill", d => color(d.value))
.attr("d", d3.geoPath());
return svg.node();
}