title: Uncaught TypeError: Cannot read property '0' of null in d3?
body: <p>I am trying to display the map of the US using d3. I currently have this code:</p>
  
  <pre><code>&lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;title&gt;D3 Test&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;script src="http://d3js.org/d3.v3.min.js" charset="utf-8"&gt;&lt;/script&gt;
      &lt;script src="http://d3js.org/queue.v1.min.js"&gt;&lt;/script&gt;
      &lt;script src="http://d3js.org/topojson.v1.min.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript"&gt;
              // width and height of the svg
              var width = 960,
                  height = 600;  
              //projection of the US map
              var projection = d3.geo.albersUsa();
              //path of the US map projection
              var path = d3.geo.projection(projection);
  
              var svg = d3.select("body").append("path").attr("width", width).attr("height", height);
  
              //d3.select("body").append("p").text("New paragraph123");
      &lt;/script&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>I get an error on the browser that says 
  "Uncaught TypeError: Cannot read property '0' of null" and points to "d3.v3.min.js:2." Does anyone have an idea why this might be happening?</p>
  
  <p>Thanks! </p>