addCityLabel = (svg, data) => {
const citiesGroup = svg
.selectAll('.cities')
.data(data)
.enter()
.append('g')
.attr(
'transform',
d =>
`translate(${projection(d.coordinates)[0]},${
projection(d.coordinates)[1]
})`
);
citiesGroup
.append('circle')
.attr('r', 4)
.attr('fill', 'white');
citiesGroup.append('circle').attr('r', 2);
citiesGroup
.append('text')
.attr('class', 'text-shadow')
.attr('dx', 5)
.style('stroke', 'white')
.style('stroke-width', 2.5)
.style('opacity', 0.9)
.style('pointer-events', 'none')
.text(d => d.name);
citiesGroup
.append('text')
.attr('dx', 5)
.attr('fill', 'darkgrey')
.style('pointer-events', 'none')
.text(d => d.name);
}