score:1

Accepted answer

Your elements with class circle are g elements, they have no cy attribute. The selector should be:

svg.selectAll(".circle circle")
  .transition().duration(500)
  ...

Related Query