https://codetricity.github.io/d3-maps/
Create Group for confederate circles.
const confederateGroup = svg.append('g');
const confederateCircles = confederateGroup.selectAll('circle')
.data(confederate)
.enter()
.append('circle')
.style('fill', '#848484')
.attr('cx', (d, i) => i * xScale.bandwidth())
.attr('cy', 300)
.attr('r', 15);
- place title 50 pixels above the y coordinate of the Confederate circles
- put 20 pixels above the center of each Confederate circle