{
const svg = DOM.svg(960, 600);
const projection = d3.geoAlbersUsa().scale(1300).translate([480,300])
const path = d3.geoPath(projection)
const us = d3.select(svg)
.append('g')
.selectAll('path')
.data(data)
.enter()
.append('path')
.attr('d', path)
.attr('class', 'state');
const circleG = d3.select(svg)
.selectAll('g')
.data(eclipse)
.join('g')
.attr('class', 'circle-group')
.attr(
'transform',
({ lon, lat }) =>
`translate(${projection([lon, lat]).join(",")})`
);
circleG.append('circle')
.attr('stroke-opacity', 1)
.attr('stroke', 'steelblue')
.attr('opacity', 0.5)
.attr('fill', 'steelblue')
.attr('r', 10);
return svg;
}