Possible Duplicate:
Whats the best way to make a d3.js visualisation layout responsive?
All the D3 examples I've seen do something like this:
var width = 1500,
height = 1500;
var svg = d3.select('body')
.append('svg')
.attr('width', width)
.attr('height', height);
How would I have the graph dynamically resize to fill the size of the current window? (ie: you set the window the size you want, and the graph fills it. Also, when you resize the window, the graph resizes to take up the space available)