chart = {
const svg = d3.create("svg")
.attr("viewBox", [0, 0, width, height])
.attr("fill", "none")
.attr("stroke", "currentColor");
const outline = svg.append("path");
const feature = svg.append("path");
function render() {
outline.attr("d", path(sphere));
feature.attr("d", path(land));
}
return svg
.call(zoom(projection).on("zoom.render end.render", render))
.call(render)
.node();
}