Skip to content

Instantly share code, notes, and snippets.

@norrs
Created June 14, 2012 13:47
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 norrs/2930401 to your computer and use it in GitHub Desktop.
Save norrs/2930401 to your computer and use it in GitHub Desktop.
svg = d3.select("#chart")
.append("svg:svg")
.attr('id', 'svg-netmap')
.attr("width", w)
.attr("height", h)
.attr("pointer-events", "all")
.append('svg:g')
.call(d3.behavior.zoom().on("zoom", redraw))
.append('svg:g')
;
svg
.append('svg:rect')
.attr('width', w)
.attr('height', h)
.attr('fill', 'white');
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment