<div class="container">
<div class="d-flex">
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
<div class="box"></div>
</div>
</div>
.box {
width: 100px;
height: 100px;
margin-inline: 10px;
}
d3.selectAll(".box").text("hello");