title: D3 - Uncaught TypeError: Cannot read property 'length' of undefined
body: <p>Error in code below.  There is no issue with the data of the remaining fields.</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Data Entry&lt;/title&gt;
  &lt;meta charset='utf-8'/&gt;
  &lt;meta name="keywords" content="D3"/&gt;
  &lt;script type="text/javascript" src="d3/d3.v3.js"&gt;&lt;/script&gt;
  &lt;style type="text/css"&gt;
  .table {border: 2px; text-align: center;}
  .th {font-size: 12px; font-weight: bold; color: blue;}
  .td {font-size: 12px;}
  &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;script type="text/javascript"&gt;
  var dataset;
  d3.text('data.txt', function(d){dataset = d3.csv.parse(d, function(d){return {id: +d.id, name: d.name};});});
  d3.select('body').append('table').attr('class','table').selectAll('tr').data(dataset).enter().append('tr');
  &lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Screenshot below:<img src="https://i.stack.imgur.com/TQb73.png" alt="Error in Chrome"></p>