We can change attributes for a selection of DOM elements by passing static values, and all selected elements will have that attribute set to that one specific value. Add the following temporarily to the end of app.js:
d3.selectAll('circle').attr('cy', 300);
The following should be seen on your screen:
But now that each circle has one of our runs JavaScript data objects attached to it, we can set attributes on each circle using that data. We do that by passing the .attr() method a callback function instead of a static value for its second parameter. Remove d3.selectAll('circle').attr('cy', 300); and adjust the last line of app.js from d3.selectAll('circle').data(runs); to the following:
d3.selectAll('circle').data(runs) .attr('cy', function...