title: How to set the browser window size according to D3JS graph?
body: <p>I am trying to set my browser window size according to height and width of my D3JS graph.
  As some of my graph is invisible.
  The code is given below where I am setting height and width.</p>
  
  <pre><code>var w = 1345, h = 1000;
  var svg = d3.select(".graphContainer").append("svg:svg")
              .attr("width", w)
              .attr("height", h);
  </code></pre>