function chart() {
const context = DOM.context2d(width, height),
path = d3.geoPath(projection).context(context);
context.beginPath();
path({ type: "Sphere" });
context.fillStyle = color(0);
context.fill();
context.lineWidth = 3;
context.stroke();
context.clip();
context.lineWidth = 0.5;
for (const c of contours) {
context.beginPath();
path(c);
context.strokeStyle = context.fillStyle = color(c.value);
context.fill();
context.stroke();
}
context.beginPath();
context.fillStyle = "orange";
for (const penta of hexagons.features.filter(d => d.properties.pentagon))
path(penta);
context.fill();
context.strokeStyle = "#fff";
context.beginPath();
path(land);
path(hexagons);
context.lineWidth = 0.5;
context.stroke();
context.strokeStyle = "black";
context.beginPath();
path(land);
context.lineWidth = 1.5;
context.stroke();
return context.canvas;
}