Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There is now selection.join() [1] which means you don’t have to use selection.merge() anymore.

[1] https://observablehq.com/@d3/selection-join



Yes I know! It's a really good improvement. Note that your link nicely proves OP's point ;)


No 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: