chart = {
const svg = d3.create("svg").attr("viewBox", [0, 0, width, height]);
const countriesPath = svg.append("path")
.datum(countries)
.attr("fill", "none")
.attr("stroke", "black")
.attr("stroke-width", 0.5)
.attr("stroke-linejoin", "round")
.attr("d", path);
const zoomed = ({ transform }) => {
countriesPath.attr('transform', transform)
countriesPath.attr('stroke-width', 0.5 / transform.k)
}
const zoom = d3.zoom().scaleExtent([1, 32]).on('zoom', zoomed)
svg.call(zoom)
return svg.node();
}