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