Creating a document structureControlling HTML in selections

Creating basic selection

d3.select('.item').text('nouveau texte'); // sél. le 1er .item
d3.select('.item:nth-child(2)').text('nouveau texte'); // sél. le 2eme .item note: pas 0-based

→ css-tricks.com/how-nth-child-works