4 ms·
There is now selection.join() [1] which means you don’t have to use selection.merge() anymore. [1] https://observablehq.com/@d3/selection-join https://observab
by FormFollowsFunc 5y ago
There is now selection.join() [1] which means you don’t have to use selection.merge() anymore.
[1] https://observablehq.com/@d3/selection-join https://observablehq.com/@d3/selection-join
- fouronnes3 5y agoYes I know! It's a really good improvement. Note that your link nicely proves OP's point ;)
- deleted 5y ago[deleted]
- j-pb 5y agoNo it doesn't. You only have to change two lines to vanilla javascript. document.getElementById("myRoot").appendChild(svg.node()); and remove the yield Thats it. But apparently you all don't know this, because you don't want to understand D3 or basic DOM APIs beyond ctrl-c/ctrl-v.