I would like to create multiple non-nested elements using d3 to create a structure like this:
<div id="parent">
<p> from data[0] </p>
<p> from data[0] </p>
<p> from data[1] </p>
<p> from data[1] </p>
<p> from data[2] </p>
<p> from data[2] </p>
</div>
creating nested structures would go something like
d3.select('#parent').selectAll('p').data(data).enter().
append('p')...append('p')
but I would like to maintain the original selection even after the append, so I could continue appending to the parent element. Thank you!