Data Joins


By default, data map to DOM elements based on array indices. If data elements outnumber DOM elements, the extra data are assigned to an enter selection. If DOM elements outnumber the data, they are assigned to an exit selection.