Skip to content

Instantly share code, notes, and snippets.

@afrinc
Created April 21, 2020 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save afrinc/c039d9440761cd34e170fa9bbbc6b2c9 to your computer and use it in GitHub Desktop.
Save afrinc/c039d9440761cd34e170fa9bbbc6b2c9 to your computer and use it in GitHub Desktop.
appending rectangular node
const rectangularNode = g
.append("svg:rect")
.attr("class", "node")
.attr("x", d => {
return 0;
})
.attr("y", d => {
return 0;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment