selecting elements

The selectAll operator takes a selector string, such as circle, and returns a selection:

var circle = svg.selectAll("circle");