mySelection.select( selectCalculator ) in D3.js

Use a function to select a different element for each entry in the selection.

Arguments

nametypedescription
selectCalculator Function Invoked for each entry in the selection, with parameters for the current datum and index, and with the this context as the current DOM element. Must return either an element or null.
Return Type
Selection

Description

For more details see https://github.com/mbostock/d3/wiki/Selections#wiki-select.

See Also