Skip to content

Instantly share code, notes, and snippets.

@csessig86
Created April 1, 2015 19:21
Show Gist options
  • Save csessig86/577f95bbb28ca9928e17 to your computer and use it in GitHub Desktop.
Save csessig86/577f95bbb28ca9928e17 to your computer and use it in GitHub Desktop.
D3: Create SVG
// Create an svg
svg = d3.select("svg")
.attr("width", width + margin.right + margin.left)
.attr("height", height + margin.top + margin.bottom)
.append("g")
.attr("transform", "translate(" + (margin.left - line_width) + "," + margin.top + ")");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment