I would like to create multiple non-nested elements using d3 to create a structure like this:
from data[0] &l
Instead of a .append(),
.append()
You can also wrap a function that creates new content in a .html()
.html()
d3.select('#parent') .selectAll('div') .data(data) .enter() .append('div') .html(function(d) {return "" + from data[0] + "" etc..... ;});
" + from data[0] + "
" etc..... ;});