plot = {
const height = 600;
const padding = 10;
const context = DOM.context2d(width, height);
const projection = d3['geoEqualEarth']().fitExtent([[10, 10], [width-padding,height-padding]], stars);
const magnitudeScale = d3.scaleLinear()
.domain(d3.extent(stars.features, d => d.properties.mag))
.range([3, 0.5])
const starPath = d3.geoPath(projection, context)
.pointRadius(d => magnitudeScale(d.properties.mag));
context.clearRect(0, 0, width, height);
context.fillStyle = "#000", context.fillRect(0, 0, width, height);
stars.features.forEach(star => {
context.beginPath(), starPath(star), context.fillStyle = "#ddd", context.fill();
});
return d3.select(context.canvas)
.node();
}