Skip to content

Instantly share code, notes, and snippets.

@JacobKnaack
Created January 30, 2020 02:00
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 JacobKnaack/3c7d1d90f6c994f3158dce9e445a0f27 to your computer and use it in GitHub Desktop.
Save JacobKnaack/3c7d1d90f6c994f3158dce9e445a0f27 to your computer and use it in GitHub Desktop.
Flask Analysis: Grabbing our svg
// Selects our parent element in our html and appens a new <svg> element
const svg = d3.select("#china-map").append("svg")
.attr("width", width)
.attr("height", height)
.append("g")
.attr("transform", "translate(0,0)");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment