Skip to content

Instantly share code, notes, and snippets.

@afrinc
Created April 21, 2020 13:10
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/5f914b02fc8774e30adda7ad6f0dce97 to your computer and use it in GitHub Desktop.
Save afrinc/5f914b02fc8774e30adda7ad6f0dce97 to your computer and use it in GitHub Desktop.
script adding svg element
<script>
var width = 500, height = 400;
const nodes = [
{
id: 0,
name: "ServiceGroup",
description: "Port : 80",
connection_count: 3
}
];
const svg = d3
.select("body")
.append("svg")
.attr("width", width)
.attr("height", height);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment